PHP Class AppserverIo\Appserver\Core\Api\Node\AbstractArgsNode

Inheritance: extends AppserverIo\Description\Api\Node\AbstractNode
Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$args array The script args to use.

Méthodes publiques

Méthode Description
attachArg ( ArgNode $arg ) : void Attaches the passed arg to the list.
getArg ( string $name ) : mixed Returns the arg with the passed name casted to the specified type.
getArgs ( ) : array Array with the args to use.
getArgsAsArray ( ) : array Returns the args casted to the defined type as associative array.

Method Details

attachArg() public méthode

Attaches the passed arg to the list.
public attachArg ( ArgNode $arg ) : void
$arg ArgNode The arg to attach
Résultat void

getArg() public méthode

Returns the arg with the passed name casted to the specified type.
public getArg ( string $name ) : mixed
$name string The name of the arg to be returned
Résultat mixed The requested arg casted to the specified type

getArgs() public méthode

Array with the args to use.
public getArgs ( ) : array
Résultat array

getArgsAsArray() public méthode

Returns the args casted to the defined type as associative array.
public getArgsAsArray ( ) : array
Résultat array The array with the casted args

Property Details

$args protected_oe property

The script args to use.
protected array $args
Résultat array