public function write($output)
    {
        $resource = fopen('php://temp', 'r+');

        ! $resource && $resource = null;

        $stream = new Stream($resource);

        $stream->write((string) $output);

        $this->stream = $stream;

        return $this;
    }
public function write($output)
    {
        $resource = fopen('php://temp', 'r+');

        ! $resource && $resource = null;

        $stream = new Stream($resource);

        $stream->write((string) $output);

        $this->stream = $stream;

        return $this;
    }
public function write ( $ output ) { $ resource = fopen ( 'php://temp' , 'r+' ) ; ! $ resource && $ resource = null ; $ stream = new Stream ( $ resource ) ; $ stream -> write ( ( string ) $ output ) ; $ this -> stream = $ stream ; return $ this ; }
Writes data directly to the stream.

@param  string $output
@return self
Writes data directly to the stream .