PHP Интерфейс 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
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

getDefault() публичный метод

Gets the default value of the Parameter.
public getDefault ( ) : mixed
Результат mixed

getDescription() публичный метод

Gets the description text of the Parameter.
public getDescription ( ) : string
Результат string

getName() публичный метод

Gets the Parameter name.
public getName ( ) : string
Результат string

hasDefault() публичный метод

Checks if Parameter has default value
public hasDefault ( ) : boolean
Результат boolean

setDefault() публичный метод

Sets the default value of the Parameter.
public setDefault ( mixed $default ) : Phalcon\Cli\Input\ParameterInterface
$default mixed The default value of the Parameter.
Результат Phalcon\Cli\Input\ParameterInterface

setDescription() публичный метод

Sets the description text of the Parameter.
public setDescription ( string $description ) : Phalcon\Cli\Input\ParameterInterface
$description string The description text of the Parameter.
Результат Phalcon\Cli\Input\ParameterInterface

setName() публичный метод

Sets the Parameter name.
public setName ( string $name ) : Phalcon\Cli\Input\ParameterInterface
$name string The Parameter name.
Результат Phalcon\Cli\Input\ParameterInterface