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

CloneableInstantiable
ExtendsGrpc\BidiStreamingCall
Grpc\AbstractCall
Methods
public __construct( $responses, $deserialize = NULL, $status = NULL)
 
MockBidiStreamingCall constructor.

    public Grpc\AbstractCall::cancel()
     
    Cancels the call.

    public Grpc\AbstractCall::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 popReceivedCalls()
     
    Return a list of calls made to write(), and clear $receivedFuncCalls.

    • return array An array of received requests
    public read()
     


    • return mixed|null
    • throws ApiException
    public Grpc\AbstractCall::setCallCredentials( $call_credentials)
     
    Set the CallCredentials for the underlying Call.

      public Grpc\BidiStreamingCall::start(array $metadata = [])
       
      Start the call.

        public write( $request, array $options = [])
         
        Save the request object, to be retrieved via getReceivedCalls()

        • throws ApiException
        public writesDone()
         
        Set writesDone to true

        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 $receivedWrites
        private $responses
        private $status
        private $writesDone
        © 2020 Bruce Wells
        Search Namespaces \ Classes
        ConfigurationNumbers (0-9.) only