public function RelativeStream::getContents in Zircon Profile 8
Same name and namespace in other branches
- 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\DiactorosCode
public function getContents() {
  return $this->decoratedStream
    ->getContents();
}