Go\Aop\Framework\AbstractJoinpoint::__construct PHP Method

__construct() public method

Initializes list of advices for current joinpoint
public __construct ( array $advices )
$advices array List of advices
    public function __construct(array $advices)
    {
        $this->advices = $advices;
    }

Usage Example

 /**
  * Constructor for field access
  *
  * @param string $className Class name
  * @param string $fieldName Field name
  * @param $advices array List of advices for this invocation
  */
 public function __construct($className, $fieldName, array $advices)
 {
     parent::__construct($advices);
     $this->reflectionProperty = $reflectionProperty = new ReflectionProperty($className, $fieldName);
     // Give an access to protected field
     if ($reflectionProperty->isProtected()) {
         $reflectionProperty->setAccessible(true);
     }
 }
All Usage Examples Of Go\Aop\Framework\AbstractJoinpoint::__construct