You are here

public function Stream::eof in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-diactoros/src/Stream.php \Zend\Diactoros\Stream::eof()
  2. 8 vendor/guzzlehttp/psr7/src/Stream.php \GuzzleHttp\Psr7\Stream::eof()
  3. 8 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Stream.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Stream::eof()
Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/Stream.php \GuzzleHttp\Psr7\Stream::eof()

Returns true if the stream is at the end of the stream.

Return value

bool

Overrides StreamInterface::eof

File

vendor/guzzlehttp/psr7/src/Stream.php, line 174

Class

Stream
PHP stream implementation.

Namespace

GuzzleHttp\Psr7

Code

public function eof() {
  return !$this->stream || feof($this->stream);
}