public function write($request)
    {
        if ($this->isComplete) {
            throw new ValidationException("Cannot call write() after streaming call is complete.");
        }
        if ($this->writesClosed) {
            throw new ValidationException("Cannot call write() after calling closeWrite().");
        }
        $this->call->write($request);
    }
public function write($request)
    {
        if ($this->isComplete) {
            throw new ValidationException("Cannot call write() after streaming call is complete.");
        }
        if ($this->writesClosed) {
            throw new ValidationException("Cannot call write() after calling closeWrite().");
        }
        $this->call->write($request);
    }
public function write ( $ request ) { if ( $ this -> isComplete ) { throw new ValidationException ( "Cannot call write() after streaming call is complete." ) ; } if ( $ this -> writesClosed ) { throw new ValidationException ( "Cannot call write() after calling closeWrite()." ) ; } $ this -> call -> write ( $ request ) ; }
Write request to the server.

@param mixed $request The request to write
@throws ValidationException
Write request to the server .