Inheritance: extends Eloquent\Phony\Invocation\AbstractWrappedInvocable, implements Eloquent\Phony\Mock\Method\WrappedMethod
コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
ファイル: WrappedTraitMethod.php プロジェクト: eloquent/phony
 /**
  * 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);
 }
コード例 #3
0
 /**
  * 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);
 }