PHP Class Go\Aop\Framework\ClassFieldAccess

Inheritance: extends AbstractJoinpoint, implements Go\Aop\Intercept\FieldAccess
Afficher le fichier Open project: goaop/framework

Protected Properties

Свойство Type Description
$instance object Instance of object for accessing
$newValue mixed New value to set
$reflectionProperty ReflectionProperty Instance of reflection property

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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() final public méthode

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
Résultat mixed

__toString() final public méthode

Returns a friendly description of current joinpoint
final public __toString ( ) : string
Résultat string

ensureScopeRule() public méthode

Checks scope rules for accessing property
public ensureScopeRule ( integer $stackLevel = 2 ) : true
$stackLevel integer Stack level for check
Résultat true if access is OK

getAccessType() public méthode

Returns the access type.
public getAccessType ( ) : integer
Résultat integer

getField() public méthode

Gets the field being accessed.
public getField ( ) : ReflectionProperty
Résultat ReflectionProperty the field being accessed.

getStaticPart() final public méthode

Returns the static part of this joinpoint.
final public getStaticPart ( ) : object
Résultat object

getThis() final public méthode

Returns the object that holds the current joinpoint's static part.
final public getThis ( ) : object | null
Résultat object | null the object (can be null if the accessible object is static).

getValue() public méthode

Gets the current value of property
public getValue ( ) : mixed
Résultat mixed

getValueToSet() public méthode

Gets the value that must be set to the field.
public getValueToSet ( ) : mixed
Résultat mixed

proceed() final public méthode

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
Résultat void For field interceptor there is no return values

Property Details

$instance protected_oe property

Instance of object for accessing
protected object $instance
Résultat object

$newValue protected_oe property

New value to set
protected mixed $newValue
Résultat mixed

$reflectionProperty protected_oe property

Instance of reflection property
protected ReflectionProperty $reflectionProperty
Résultat ReflectionProperty