public function __construct(ReflectionMethod $method, Handle $handle)
{
$this->method = $method;
$this->handle = $handle;
$this->name = $method->getName();
if ($handle instanceof StaticHandle) {
$this->mock = null;
$callback = array($method->getDeclaringClass()->getName(), $this->name);
} else {
$this->mock = $handle->get();
$callback = array($this->mock, $this->name);
}
parent::__construct($callback, null);
}