PHP 인터페이스 Phalcon\Cli\Input\ArgumentInterface

This interface is meant to represent a command line argument according to IEEE Std 1003.1, 2013 Edition and to provide methods for most common operations. The ArgumentInterface uses a convention stating that the argument is a synonym of the operand. Additional functionality for working with arguments can be provided on top of the interface (ParameterInterface) or externally. This interface includes properties for each of the following: - Argument type (optional, required, array)
상속: extends Phalcon\Cli\Input\ParameterInterface
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
getMode ( ) : integer Gets the Argument mode (one of the IS_* constants).
isArray ( ) : boolean Checks if the Argument can take multiple values.
isOptional ( ) : boolean Checks if the Argument is optional.
isRequired ( ) : boolean Checks if the Argument is required.
setMode ( integer $mode ) : Phalcon\Cli\Input\ArgumentInterface Sets the Argument mode (one of the IS_* constants).

메소드 상세

getMode() 공개 메소드

Gets the Argument mode (one of the IS_* constants).
public getMode ( ) : integer
리턴 integer

isArray() 공개 메소드

Checks if the Argument can take multiple values.
public isArray ( ) : boolean
리턴 boolean

isOptional() 공개 메소드

Checks if the Argument is optional.
public isOptional ( ) : boolean
리턴 boolean

isRequired() 공개 메소드

Checks if the Argument is required.
public isRequired ( ) : boolean
리턴 boolean

setMode() 공개 메소드

Sets the Argument mode (one of the IS_* constants).
public setMode ( integer $mode ) : Phalcon\Cli\Input\ArgumentInterface
$mode integer The Argument mode.
리턴 Phalcon\Cli\Input\ArgumentInterface