PHP Interface Phalcon\Cli\Input\ParameterInterface

Represents an abstract command line Parameter. This interface must be used as a base interface for any parameters - Options and Arguments (so-called Operands). This interface includes properties for each of the following: - Parameter name - Parameter description - Parameter default value
Afficher le fichier Open project: phalcon/incubator

Méthodes publiques

Méthode Description
getDefault ( ) : mixed Gets the default value of the Parameter.
getDescription ( ) : string Gets the description text of the Parameter.
getName ( ) : string Gets the Parameter name.
hasDefault ( ) : boolean Checks if Parameter has default value
setDefault ( mixed $default ) : Phalcon\Cli\Input\ParameterInterface Sets the default value of the Parameter.
setDescription ( string $description ) : Phalcon\Cli\Input\ParameterInterface Sets the description text of the Parameter.
setName ( string $name ) : Phalcon\Cli\Input\ParameterInterface Sets the Parameter name.

Method Details

getDefault() public méthode

Gets the default value of the Parameter.
public getDefault ( ) : mixed
Résultat mixed

getDescription() public méthode

Gets the description text of the Parameter.
public getDescription ( ) : string
Résultat string

getName() public méthode

Gets the Parameter name.
public getName ( ) : string
Résultat string

hasDefault() public méthode

Checks if Parameter has default value
public hasDefault ( ) : boolean
Résultat boolean

setDefault() public méthode

Sets the default value of the Parameter.
public setDefault ( mixed $default ) : Phalcon\Cli\Input\ParameterInterface
$default mixed The default value of the Parameter.
Résultat Phalcon\Cli\Input\ParameterInterface

setDescription() public méthode

Sets the description text of the Parameter.
public setDescription ( string $description ) : Phalcon\Cli\Input\ParameterInterface
$description string The description text of the Parameter.
Résultat Phalcon\Cli\Input\ParameterInterface

setName() public méthode

Sets the Parameter name.
public setName ( string $name ) : Phalcon\Cli\Input\ParameterInterface
$name string The Parameter name.
Résultat Phalcon\Cli\Input\ParameterInterface