You are here

public function RelativeStream::getContents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/RelativeStream.php \Zend\Diactoros\RelativeStream::getContents()

Returns the remaining contents in a string

Return value

string

Throws

\RuntimeException if unable to read or an error occurs while reading.

Overrides StreamInterface::getContents

1 call to RelativeStream::getContents()
RelativeStream::__toString in vendor/zendframework/zend-diactoros/src/RelativeStream.php
Reads all data from the stream into a string, from the beginning to end.

File

vendor/zendframework/zend-diactoros/src/RelativeStream.php, line 156

Class

RelativeStream
Class RelativeStream

Namespace

Zend\Diactoros

Code

public function getContents() {
  return $this->decoratedStream
    ->getContents();
}