PHP 클래스 Pheasant\Property

파일 보기 프로젝트 열기: lox/pheasant

공개 프로퍼티들

프로퍼티 타입 설명
$name
$type

공개 메소드들

메소드 설명
__construct ( $name, $type ) Constructor
__toString ( ) Returns the name of the property
defaultValue ( ) Returns the default value for a property, or NULL
getter ( $key ) : closure Return a closure for accessing the value of the property
hasDefaultValue ( ) : boolean Returns a bool for whether the property has a default value
reference ( $object ) : PropertyReference Returns a reference to the property value of a specific object
setter ( $key ) : closure Return a closure that when called sets the value of the property

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $name, $type )

__toString() 공개 메소드

Returns the name of the property
public __toString ( )

defaultValue() 공개 메소드

Returns the default value for a property, or NULL
public defaultValue ( )

getter() 공개 메소드

Return a closure for accessing the value of the property
public getter ( $key ) : closure
리턴 closure

hasDefaultValue() 공개 메소드

Returns a bool for whether the property has a default value
public hasDefaultValue ( ) : boolean
리턴 boolean

reference() 공개 메소드

Returns a reference to the property value of a specific object
public reference ( $object ) : PropertyReference
리턴 PropertyReference

setter() 공개 메소드

Return a closure that when called sets the value of the property
public setter ( $key ) : closure
리턴 closure

프로퍼티 상세

$name 공개적으로 프로퍼티

public $name

$type 공개적으로 프로퍼티

public $type