PHP 클래스 ZF\Console\Route

상속: extends Zend\Console\RouteMatcher\DefaultRouteMatcher
파일 보기 프로젝트 열기: zfcampus/zf-console 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$description string
$matches null | array
$name string
$optionsDescription array
$route string
$shortDescription string

공개 메소드들

메소드 설명
__construct ( string $name, string $route, array $constraints = [], array $defaults = [], array $aliases = [], array $filters = null, array $validators = null )
getDescription ( ) : string
getMatchedParam ( string $param, mixed $default = null ) : mixed Retrieve a matched parameter
getMatches ( ) : null | array
getName ( ) : string
getOptionsDescription ( ) : array
getRoute ( ) : string
getShortDescription ( ) : string
isMatched ( ) : boolean
match ( array $params ) : array | null Override match()
matchedParam ( string $param ) : boolean Was the parameter matched?
setDescription ( string $description ) : self
setOptionsDescription ( array $descriptions ) : self
setShortDescription ( string $description ) : self

메소드 상세

__construct() 공개 메소드

public __construct ( string $name, string $route, array $constraints = [], array $defaults = [], array $aliases = [], array $filters = null, array $validators = null )
$name string
$route string Route string to match
$constraints array Argument constraints (optional)
$defaults array Argument default values (optional)
$aliases array
$filters array Filters to use for specific arguments (optional)
$validators array Filters to use for specific arguments (optional)

getDescription() 공개 메소드

public getDescription ( ) : string
리턴 string

getMatchedParam() 공개 메소드

Retrieve a matched parameter
public getMatchedParam ( string $param, mixed $default = null ) : mixed
$param string
$default mixed
리턴 mixed

getMatches() 공개 메소드

public getMatches ( ) : null | array
리턴 null | array

getName() 공개 메소드

public getName ( ) : string
리턴 string

getOptionsDescription() 공개 메소드

public getOptionsDescription ( ) : array
리턴 array

getRoute() 공개 메소드

public getRoute ( ) : string
리턴 string

getShortDescription() 공개 메소드

public getShortDescription ( ) : string
리턴 string

isMatched() 공개 메소드

public isMatched ( ) : boolean
리턴 boolean

match() 공개 메소드

If matched, set the matches in the route
public match ( array $params ) : array | null
$params array
리턴 array | null

matchedParam() 공개 메소드

Was the parameter matched?
public matchedParam ( string $param ) : boolean
$param string
리턴 boolean

setDescription() 공개 메소드

public setDescription ( string $description ) : self
$description string
리턴 self

setOptionsDescription() 공개 메소드

public setOptionsDescription ( array $descriptions ) : self
$descriptions array
리턴 self

setShortDescription() 공개 메소드

public setShortDescription ( string $description ) : self
$description string
리턴 self

프로퍼티 상세

$description 보호되어 있는 프로퍼티

protected string $description
리턴 string

$matches 보호되어 있는 프로퍼티

protected null|array $matches
리턴 null | array

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$optionsDescription 보호되어 있는 프로퍼티

protected array $optionsDescription
리턴 array

$route 보호되어 있는 프로퍼티

protected string $route
리턴 string

$shortDescription 보호되어 있는 프로퍼티

protected string $shortDescription
리턴 string