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
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
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