PHP Class bitExpert\Disco\Annotations\Parameter

Afficher le fichier Open project: bitexpert/disco

Protected Properties

Свойство Type Description
$defaultValue mixed
$name string
$required boolean

Méthodes publiques

Méthode 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 méthode

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

getDefaultValue() public méthode

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

getName() public méthode

Returns the name of the configuration value to use.
public getName ( ) : string
Résultat string

isRequired() public méthode

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

Property Details

$defaultValue protected_oe property

protected mixed $defaultValue
Résultat mixed

$name protected_oe property

protected string $name
Résultat string

$required protected_oe property

protected bool $required
Résultat boolean