PHP Class Go\Proxy\TraitProxy

Inheritance: extends ClassProxy
Datei anzeigen Open project: goaop/framework

Protected Properties

Property Type Description
$invocationClassMap {@inheritDoc}
$traitAdvices array List of advices for traits

Public Methods

Method Description
__toString ( ) {@inheritDoc}
getJoinPoint ( $traitName, $className, $joinPointType, $pointName )
injectJoinPoints ( string $className, array $traitAdvices = [] ) : void Inject advices for given trait

Protected Methods

Method Description
getJoinpointInvocationBody ( ReflectionMetho\ReflectionMethod $method ) : string Creates definition for trait method body

Private Methods

Method Description
getMethodAliasesCode ( )

Method Details

__toString() public method

{@inheritDoc}
public __toString ( )

getJoinPoint() public static method

public static getJoinPoint ( $traitName, $className, $joinPointType, $pointName )

getJoinpointInvocationBody() protected method

Creates definition for trait method body
protected getJoinpointInvocationBody ( ReflectionMetho\ReflectionMethod $method ) : string
$method ReflectionMetho\ReflectionMethod Method reflection
return string new method body

injectJoinPoints() public static method

NB This method will be used as a callback during source code evaluation to inject joinpoints
public static injectJoinPoints ( string $className, array $traitAdvices = [] ) : void
$className string Aop child proxy class
$traitAdvices array List of advices to inject into class
return void

Property Details

$invocationClassMap protected_oe static_oe property

{@inheritDoc}
protected static $invocationClassMap

$traitAdvices protected_oe static_oe property

List of advices for traits
protected static array $traitAdvices
return array