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

상속: extends AppserverIo\Description\Api\Node\AbstractNode
파일 보기 프로젝트 열기: appserver-io/appserver

보호된 프로퍼티들

프로퍼티 타입 설명
$args array The script args to use.

공개 메소드들

메소드 설명
attachArg ( ArgNode $arg ) : void Attaches the passed arg to the list.
getArg ( string $name ) : mixed Returns the arg with the passed name casted to the specified type.
getArgs ( ) : array Array with the args to use.
getArgsAsArray ( ) : array Returns the args casted to the defined type as associative array.

메소드 상세

attachArg() 공개 메소드

Attaches the passed arg to the list.
public attachArg ( ArgNode $arg ) : void
$arg ArgNode The arg to attach
리턴 void

getArg() 공개 메소드

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
리턴 mixed The requested arg casted to the specified type

getArgs() 공개 메소드

Array with the args to use.
public getArgs ( ) : array
리턴 array

getArgsAsArray() 공개 메소드

Returns the args casted to the defined type as associative array.
public getArgsAsArray ( ) : array
리턴 array The array with the casted args

프로퍼티 상세

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

The script args to use.
protected array $args
리턴 array