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

Inheritance: extends AppserverIo\Description\Api\Node\AbstractNode
Show file Open project: appserver-io/appserver

Protected Properties

Property Type Description
$args array The script args to use.

Public Methods

Method 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 method

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

getArg() public method

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
return mixed The requested arg casted to the specified type

getArgs() public method

Array with the args to use.
public getArgs ( ) : array
return array

getArgsAsArray() public method

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

Property Details

$args protected property

The script args to use.
protected array $args
return array