AppserverIo\Appserver\Core\Api\Node\ParamsNodeTrait::getParam PHP Method

getParam() public method

Returns the param with the passed name casted to the specified type.
public getParam ( string $name ) : mixed
$name string The name of the param to be returned
return mixed The requested param casted to the specified type
    public function getParam($name)
    {
        $params = $this->getParamsAsArray();
        if (array_key_exists($name, $params)) {
            return $params[$name];
        }
    }