You are here

public function Stream::__get in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/Stream.php \GuzzleHttp\Psr7\Stream::__get()

File

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

Class

Stream
PHP stream implementation.

Namespace

GuzzleHttp\Psr7

Code

public function __get($name) {
  if ($name == 'stream') {
    throw new \RuntimeException('The stream is detached');
  }
  throw new \BadMethodCallException('No value for ' . $name);
}