PHP Trait AppserverIo\Appserver\Core\Api\Node\ParamsNodeTrait

Author: Tim Wagner ([email protected])
Author: Bernhard Wick ([email protected])
Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$params array The handler params to use.

Méthodes publiques

Méthode Description
getParam ( string $name ) : mixed Returns the param with the passed name casted to the specified type.
getParams ( ) : array Array with the handler params to use.
getParamsAsArray ( ) : array Returns the params casted to the defined type as associative array.
setParam ( string $name, string $type, mixed $value ) : void Sets the param with the passed name, type and value.
setParams ( array $params ) : void Array with the handler params to use.

Method Details

getParam() public méthode

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
Résultat mixed The requested param casted to the specified type

getParams() public méthode

Array with the handler params to use.
public getParams ( ) : array
Résultat array

getParamsAsArray() public méthode

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

setParam() public méthode

Sets the param with the passed name, type and value.
public setParam ( string $name, string $type, mixed $value ) : void
$name string The param name
$type string The param type
$value mixed The param value
Résultat void

setParams() public méthode

Array with the handler params to use.
public setParams ( array $params ) : void
$params array The handler params
Résultat void

Property Details

$params protected_oe property

The handler params to use.
protected array $params
Résultat array