Zend\Diactoros\Stream::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( string | resource $stream, string $mode = 'r' )
$stream string | resource
$mode string Mode with which to open stream
    public function __construct($stream, $mode = 'r')
    {
        $this->setStream($stream, $mode);
    }

Usage Example

예제 #1
0
 public function __construct($string)
 {
     parent::__construct('data://text/plain;base64,' . base64_encode($string));
 }