Created
August 20, 2013 12:51
-
-
Save koriym/6280947 to your computer and use it in GitHub Desktop.
generated aop code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Mock_ray569357a3a82a9de18a16206045ebb680 extends Ray\Aop\Mock\Mock implements Ray\Aop\WeavedInterface | |
{ | |
private $___intercept = true; | |
public $___bind; | |
public function returnSame($a) | |
{ | |
if ($this->___intercept) { | |
$this->___intercept = false; | |
$interceptors = $this->___bind[__FUNCTION__]; | |
$annotation = isset($this->___bind->annotation[__FUNCTION__]) ? $this->___bind->annotation[__FUNCTION__] : null; | |
$invocation = new \Ray\Aop\ReflectiveMethodInvocation(array($this, __FUNCTION__), func_get_args(), $interceptors, $annotation); | |
return $invocation->proceed(); | |
} | |
$this->___intercept = true; | |
return call_user_func_array('parent::' . __FUNCTION__, func_get_args()); | |
} | |
public function returnValue(Ray\Aop\Mock\Num $num = null) | |
{ | |
if ($this->___intercept) { | |
$this->___intercept = false; | |
$interceptors = $this->___bind[__FUNCTION__]; | |
$annotation = isset($this->___bind->annotation[__FUNCTION__]) ? $this->___bind->annotation[__FUNCTION__] : null; | |
$invocation = new \Ray\Aop\ReflectiveMethodInvocation(array($this, __FUNCTION__), func_get_args(), $interceptors, $annotation); | |
return $invocation->proceed(); | |
} | |
$this->___intercept = true; | |
return call_user_func_array('parent::' . __FUNCTION__, func_get_args()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment