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

Inheritance: extends AppserverIo\Description\Api\Node\AbstractValueNode
Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Свойство Type Description
$constant string TRUE if the value is a constant.
$env string TRUE if the value is an environment variable.
$name string The paramss name.
$type string The params data type.

Méthodes publiques

Méthode Description
__construct ( string $name = '', string $type = '', AppserverIo\Configuration\Interfaces\ValueInterface $nodeValue = null, boolean $constant = false, boolean $env = false ) Initializes the param node with the necessary data.
castToType ( ) : mixed Casts the params value to the defined type and returns it.
getName ( ) : string Returns the param name.
getPrimaryKey ( ) : string Returns the nodes primary key, the name by default.
getType ( ) : string Returns the param type.
isConstant ( ) : boolean Returns the TRUE if the value is a constant, else FALSE.
isEnv ( ) : boolean Returns the TRUE if the value is an environment variable, else FALSE.

Method Details

__construct() public méthode

Initializes the param node with the necessary data.
public __construct ( string $name = '', string $type = '', AppserverIo\Configuration\Interfaces\ValueInterface $nodeValue = null, boolean $constant = false, boolean $env = false )
$name string The params name
$type string The params data type
$nodeValue AppserverIo\Configuration\Interfaces\ValueInterface The params initial value
$constant boolean TRUE if the value is a constant, else FALSE
$env boolean TRUE if the value is an environment variable, else FALSE

castToType() public méthode

Casts the params value to the defined type and returns it.
public castToType ( ) : mixed
Résultat mixed The casted value

getName() public méthode

Returns the param name.
public getName ( ) : string
Résultat string The param name

getPrimaryKey() public méthode

Returns the nodes primary key, the name by default.
See also: AppserverIo\Appserver\Core\Api\Node\AbstractNode::getPrimaryKey()
public getPrimaryKey ( ) : string
Résultat string The nodes primary key

getType() public méthode

Returns the param type.
public getType ( ) : string
Résultat string The param type

isConstant() public méthode

Returns the TRUE if the value is a constant, else FALSE.
public isConstant ( ) : boolean
Résultat boolean TRUE if the value is a constant, else FALSE

isEnv() public méthode

Returns the TRUE if the value is an environment variable, else FALSE.
public isEnv ( ) : boolean
Résultat boolean TRUE if the value is an environment variable, else FALSE

Property Details

$constant protected_oe property

TRUE if the value is a constant.
protected string $constant
Résultat string

$env protected_oe property

TRUE if the value is an environment variable.
protected string $env
Résultat string

$name protected_oe property

The paramss name.
protected string $name
Résultat string

$type protected_oe property

The params data type.
protected string $type
Résultat string