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

__construct() public method

Constructor for method invocation
public __construct ( string $className, string $methodName, array $advices )
$className string Class name
$methodName string Method to invoke
$advices array array List of advices for this invocation
    public function __construct($className, $methodName, array $advices)
    {
        parent::__construct($advices);
        $this->className = $className;
        $this->reflectionMethod = $method = new AnnotatedReflectionMethod($this->className, $methodName);
        // Give an access to call protected method
        if ($method->isProtected()) {
            $method->setAccessible(true);
        }
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function __construct($className, $methodName, array $advices)
 {
     parent::__construct($className, $methodName, $advices);
     $this->closureToCall = $this->getStaticInvoker($this->className, $methodName);
 }