PHP 클래스 Go\Aop\Framework\ClassFieldAccess

상속: extends AbstractJoinpoint, implements Go\Aop\Intercept\FieldAccess
파일 보기 프로젝트 열기: goaop/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$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