Documentation

StreamDecorator

Decorates a stream.

Tags
author

Márk Sági-Kazár mark.sagikazar@gmail.com

Table of Contents

Properties

$stream  : StreamInterface

Methods

__toString()  : string
close()  : void
detach()  : mixed
eof()  : bool
getContents()  : string
getMetadata()  : mixed
getSize()  : int|null
isReadable()  : bool
isSeekable()  : bool
isWritable()  : bool
read()  : string
rewind()  : void
seek()  : void
tell()  : int
write()  : int

Properties

Methods

getMetadata()

public getMetadata([string|null $key = null ]) : mixed
Parameters
$key : string|null = null

read()

public read(int $length) : string
Parameters
$length : int
Return values
string

seek()

public seek(int $offset[, int $whence = SEEK_SET ]) : void
Parameters
$offset : int
$whence : int = SEEK_SET

write()

public write(string $string) : int
Parameters
$string : string
Return values
int

        
On this page

Search results