private function _StreamUnaryCallFactory($channel)
    {
        if (is_a($channel, 'Grpc\Internal\InterceptorChannel')) {
            return function ($method,
                             $deserialize,
                             array $metadata = [],
                             array $options = []) use ($channel) {
                return $channel->getInterceptor()->interceptStreamUnary(
                    $method,
                    $deserialize,
                    $metadata,
                    $options,
                    $this->_StreamUnaryCallFactory($channel->getNext())
                );
            };
        }
        return $this->_GrpcStreamUnary($channel);
    }
private function _StreamUnaryCallFactory($channel)
    {
        if (is_a($channel, 'Grpc\Internal\InterceptorChannel')) {
            return function ($method,
                             $deserialize,
                             array $metadata = [],
                             array $options = []) use ($channel) {
                return $channel->getInterceptor()->interceptStreamUnary(
                    $method,
                    $deserialize,
                    $metadata,
                    $options,
                    $this->_StreamUnaryCallFactory($channel->getNext())
                );
            };
        }
        return $this->_GrpcStreamUnary($channel);
    }
private function _StreamUnaryCallFactory ( $ channel ) { if ( is_a ( $ channel , 'Grpc\Internal\InterceptorChannel' ) ) { return function ( $ method , $ deserialize , array $ metadata = [ ] , array $ options = [ ] ) use ( $ channel ) { return $ channel -> getInterceptor ( ) -> interceptStreamUnary ( $ method , $ deserialize , $ metadata , $ options , $ this -> _StreamUnaryCallFactory ( $ channel -> getNext ( ) ) ) ; } ; } return $ this -> _GrpcStreamUnary ( $ channel ) ; }
Create a function which can be used to create ClientStreamingCall

@param Channel|InterceptorChannel   $channel
@param callable $deserialize A function that deserializes the response

@return \Closure
Create a function which can be used to create ClientStreamingCall