You are here

public function Stream::__construct in Zircon Profile 8

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

Parameters

string|resource $stream:

string $mode Mode with which to open stream:

Throws

InvalidArgumentException

1 call to Stream::__construct()
PhpInputStream::__construct in vendor/zendframework/zend-diactoros/src/PhpInputStream.php
1 method overrides Stream::__construct()
PhpInputStream::__construct in vendor/zendframework/zend-diactoros/src/PhpInputStream.php

File

vendor/zendframework/zend-diactoros/src/Stream.php, line 36

Class

Stream
Implementation of PSR HTTP streams

Namespace

Zend\Diactoros

Code

public function __construct($stream, $mode = 'r') {
  $this
    ->setStream($stream, $mode);
}