AppserverIo\Appserver\Core\Api\Node\AbstractArgsNode::getArg PHP Method

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
    public function getArg($name)
    {
        $args = $this->getArgsAsArray();
        if (array_key_exists($name, $args)) {
            return $args[$name];
        }
    }