The MockServerStreamingCall class is used to mock out the \Grpc\ServerStreamingCall class
(https://github.com/grpc/grpc/blob/master/src/php/lib/Grpc/ServerStreamingCall.php)

CloneableInstantiable
ExtendsGrpc\ServerStreamingCall
Grpc\AbstractCall
Methods
public __construct( $responses, $deserialize = NULL, $status = NULL)
 

MockServerStreamingCall constructor.

    public Grpc\AbstractCall::cancel()
     

    Cancels the call.

    public Grpc\ServerStreamingCall::getMetadata()
     
    • return mixed The metadata sent by the server
    public Grpc\AbstractCall::getPeer()
     
    • return string The URI of the endpoint
    public getStatus()
     
    • return MockStatus|null|\stdClass
    • throws ApiException
    public Grpc\AbstractCall::getTrailingMetadata()
     
    • return mixed The trailing metadata sent by the server
    public responses()
    public Grpc\AbstractCall::setCallCredentials( $call_credentials)
     

    Set the CallCredentials for the underlying Call.

      public Grpc\ServerStreamingCall::start( $data, array $metadata = [], array $options = [])
       

      Start the call.

        Properties
        protected Grpc\AbstractCall::$call
         
        • var Call
        protected Grpc\AbstractCall::$deserialize
        protected Grpc\AbstractCall::$metadata
        protected Grpc\AbstractCall::$trailing_metadata
        Methods
        protected Grpc\AbstractCall::_deserializeResponse( $value)
         

        Deserialize a response value to an object.

        • return mixed The deserialized value
        protected Grpc\AbstractCall::_serializeMessage( $data)
         

        Serialize a message to the protobuf binary format.

        • return string The protobuf binary format
        protected deserializeMessage( $message, $deserialize)
        Properties
        private $responses
        private $status
        © 2020 Bruce Wells
        Search Namespaces \ Classes
        ConfigurationNumbers (0-9.) only