PHP Класс Pheasant\Property

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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