/** * Construct a new wrapped custom method. * * @param callable $customCallback The custom callback. * @param ReflectionMethod $method The method. * @param Handle $handle The handle. * @param Invoker $invoker The invoker to use. */ public function __construct($customCallback, ReflectionMethod $method, Handle $handle, Invoker $invoker) { $this->customCallback = $customCallback; $this->invoker = $invoker; parent::__construct($method, $handle); }
/** * Construct a new wrapped trait method. * * @param ReflectionMethod $callTraitMethod The _callTrait() method. * @param string $traitName The trait name. * @param ReflectionMethod $method The method. * @param Handle $handle The handle. */ public function __construct(ReflectionMethod $callTraitMethod, $traitName, ReflectionMethod $method, Handle $handle) { $this->callTraitMethod = $callTraitMethod; $this->traitName = $traitName; parent::__construct($method, $handle); }
/** * Construct a new wrapped parent method. * * @param ReflectionMethod $callParentMethod The _callParent() method. * @param ReflectionMethod $method The method. * @param Handle $handle The handle. */ public function __construct(ReflectionMethod $callParentMethod, ReflectionMethod $method, Handle $handle) { $this->callParentMethod = $callParentMethod; parent::__construct($method, $handle); }