. */ ?> class implements Yay_MockObject { private $_yayInvocationHandler; public function __construct(Yay_InvocationHandler $invocationHandler) { $this->_yayInvocationHandler = $invocationHandler; } function ( $param): ?> 0) echo ','; ?> $arg_ ) { $value = null; if (isset($this->_yayInvocationHandler)) { $args = array(); for ($i = 0; $i < func_num_args(); ++$i) { $argName = 'arg_' . $i; $args[] =& ${$argName}; } $invocation = new Yay_SimpleInvocation($this, __FUNCTION__, $args); $value =& $this->_yayInvocationHandler->handleInvocation($invocation); } return $value; } public function __clone() { $this->_yayInvocationHandler = null; } }