PHP Class bitExpert\Disco\Annotations\Parameter

Exibir arquivo Open project: bitexpert/disco

Protected Properties

Property Type Description
$defaultValue mixed
$name string
$required boolean

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

getDefaultValue() public method

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

getName() public method

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

isRequired() public method

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

Property Details

$defaultValue protected_oe property

protected mixed $defaultValue
return mixed

$name protected_oe property

protected string $name
return string

$required protected_oe property

protected bool $required
return boolean