PHP 클래스 bitExpert\Disco\Annotations\Parameter

파일 보기 프로젝트 열기: bitexpert/disco

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultValue mixed
$name string
$required boolean

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) Creates a new {@link \bitExpert\Disco\Annotations\Parameter}.
getDefaultValue ( ) : mixed Returns the default value to use in case the configuration value is not defined.
getName ( ) : string Returns the name of the configuration value to use.
isRequired ( ) : boolean Returns true if the parameter is required, false for an optional parameter.

메소드 상세

__construct() 공개 메소드

Creates a new {@link \bitExpert\Disco\Annotations\Parameter}.
public __construct ( array $attributes = [] )
$attributes array

getDefaultValue() 공개 메소드

Returns the default value to use in case the configuration value is not defined.
public getDefaultValue ( ) : mixed
리턴 mixed

getName() 공개 메소드

Returns the name of the configuration value to use.
public getName ( ) : string
리턴 string

isRequired() 공개 메소드

Returns true if the parameter is required, false for an optional parameter.
public isRequired ( ) : boolean
리턴 boolean

프로퍼티 상세

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

protected mixed $defaultValue
리턴 mixed

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

protected string $name
리턴 string

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

protected bool $required
리턴 boolean