You are here

public function RelativeStream::detach in Zircon Profile 8.0

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

Separates any underlying resources from the stream.

After the stream has been detached, the stream is in an unusable state.

Return value

resource|null Underlying PHP stream, if any

Overrides StreamInterface::detach

File

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

Class

RelativeStream
Class RelativeStream

Namespace

Zend\Diactoros

Code

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