PHP 클래스 AppserverIo\Appserver\Core\Api\Node\ParamNode

상속: extends AppserverIo\Description\Api\Node\AbstractValueNode
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

Casts the params value to the defined type and returns it.
public castToType ( ) : mixed
리턴 mixed The casted value

getName() 공개 메소드

Returns the param name.
public getName ( ) : string
리턴 string The param name

getPrimaryKey() 공개 메소드

Returns the nodes primary key, the name by default.
또한 보기: AppserverIo\Appserver\Core\Api\Node\AbstractNode::getPrimaryKey()
public getPrimaryKey ( ) : string
리턴 string The nodes primary key

getType() 공개 메소드

Returns the param type.
public getType ( ) : string
리턴 string The param type

isConstant() 공개 메소드

Returns the TRUE if the value is a constant, else FALSE.
public isConstant ( ) : boolean
리턴 boolean TRUE if the value is a constant, else FALSE

isEnv() 공개 메소드

Returns the TRUE if the value is an environment variable, else FALSE.
public isEnv ( ) : boolean
리턴 boolean TRUE if the value is an environment variable, else FALSE

프로퍼티 상세

$constant 보호되어 있는 프로퍼티

TRUE if the value is a constant.
protected string $constant
리턴 string

$env 보호되어 있는 프로퍼티

TRUE if the value is an environment variable.
protected string $env
리턴 string

$name 보호되어 있는 프로퍼티

The paramss name.
protected string $name
리턴 string

$type 보호되어 있는 프로퍼티

The params data type.
protected string $type
리턴 string