PHP Класс Go\Aop\Framework\ClassFieldAccess

Наследование: extends AbstractJoinpoint, implements Go\Aop\Intercept\FieldAccess
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$instance object Instance of object for accessing
$newValue mixed New value to set
$reflectionProperty ReflectionProperty Instance of reflection property

Открытые методы

Метод Описание
__construct ( string $className, string $fieldName, array $advices ) Constructor for field access
__invoke ( object $instance, integer $accessType, mixed &$originalValue, mixed $newValue = NAN ) : mixed Invokes current field access with all interceptors
__toString ( ) : string Returns a friendly description of current joinpoint
ensureScopeRule ( integer $stackLevel = 2 ) : true Checks scope rules for accessing property
getAccessType ( ) : integer Returns the access type.
getField ( ) : ReflectionProperty Gets the field being accessed.
getStaticPart ( ) : object Returns the static part of this joinpoint.
getThis ( ) : object | null Returns the object that holds the current joinpoint's static part.
getValue ( ) : mixed Gets the current value of property
getValueToSet ( ) : mixed Gets the value that must be set to the field.
proceed ( ) : void Proceed to the next interceptor in the Chain

Описание методов

__construct() публичный метод

Constructor for field access
public __construct ( string $className, string $fieldName, array $advices )
$className string Class name
$fieldName string Field name
$advices array array List of advices for this invocation

__invoke() закрытый публичный метод

Invokes current field access with all interceptors
final public __invoke ( object $instance, integer $accessType, mixed &$originalValue, mixed $newValue = NAN ) : mixed
$instance object Instance of object
$accessType integer Type of access: READ or WRITE
$originalValue mixed Original value of property
$newValue mixed New value to set
Результат mixed

__toString() закрытый публичный метод

Returns a friendly description of current joinpoint
final public __toString ( ) : string
Результат string

ensureScopeRule() публичный метод

Checks scope rules for accessing property
public ensureScopeRule ( integer $stackLevel = 2 ) : true
$stackLevel integer Stack level for check
Результат true if access is OK

getAccessType() публичный метод

Returns the access type.
public getAccessType ( ) : integer
Результат integer

getField() публичный метод

Gets the field being accessed.
public getField ( ) : ReflectionProperty
Результат ReflectionProperty the field being accessed.

getStaticPart() закрытый публичный метод

Returns the static part of this joinpoint.
final public getStaticPart ( ) : object
Результат object

getThis() закрытый публичный метод

Returns the object that holds the current joinpoint's static part.
final public getThis ( ) : object | null
Результат object | null the object (can be null if the accessible object is static).

getValue() публичный метод

Gets the current value of property
public getValue ( ) : mixed
Результат mixed

getValueToSet() публичный метод

Gets the value that must be set to the field.
public getValueToSet ( ) : mixed
Результат mixed

proceed() закрытый публичный метод

Typically this method is called inside previous closure, as instance of Joinpoint is passed to callback Do not call this method directly, only inside callback closures.
final public proceed ( ) : void
Результат void For field interceptor there is no return values

Описание свойств

$instance защищенное свойство

Instance of object for accessing
protected object $instance
Результат object

$newValue защищенное свойство

New value to set
protected mixed $newValue
Результат mixed

$reflectionProperty защищенное свойство

Instance of reflection property
protected ReflectionProperty $reflectionProperty
Результат ReflectionProperty