deserialize = $deserialize; } /** * @param mixed $responseObject * @param $status * @param callable $deserialize * @return MockClientStreamingStub */ public static function create($responseObject, $status = null, $deserialize = null) { $stub = new MockClientStreamingStub($deserialize); $stub->addResponse($responseObject, $status); return $stub; } public function __call($name, $arguments) { list($metadata, $options) = $arguments; $newArgs = [$name, $this->deserialize, $metadata, $options]; return call_user_func_array(array($this, '_clientStreamRequest'), $newArgs); } }