Copied!

ServerStream is the response object from a server streaming API call.

  • template
CloneableInstantiable
Methods
public __construct( $serverStreamingCall, array $streamingDescriptor = [], ?Psr\Log\LoggerInterface $logger = NULL)
 

ServerStream constructor.

  • param \ServerStreamingCallInterface $serverStreamingCall The server streaming call object
  • param array $streamingDescriptor
  • param null|\LoggerInterface $logger A PSR-3 compliant logger.
public getServerStreamingCall()
 

Return the underlying call object.

  • return \ServerStreamingCallInterface
public readAll()
 

A generator which yields results from the server until the streaming call completes. Throws an ApiException if the streaming call failed.

  • throws \ApiException
  • return \Generator<int,\T>|mixed
Properties
private $call = NULL
private ?Psr\Log\LoggerInterface $logger
private $resourcesGetMethod = NULL
Methods
private getJwtToken(array $headers) : ?array
 
  • param array $headers
  • return null|array<string,string|false>
private logRequest(Google\Auth\Logging\RpcLogEvent $event) : void
 
  • param \RpcLogEvent $event
private logResponse(Google\Auth\Logging\RpcLogEvent $event) : void
 
  • param \RpcLogEvent $event
private truncatePayload(?string $payload) : ?string
 
  • param null|string $payload
  • return string
© 2025 Bruce Wells