Documentation

OneTimeGeneratorStream
in package
implements StreamInterface

FinalYes

Table of Contents

Interfaces

StreamInterface

Methods

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

Methods

getContents()

public getContents() : string
Tags
throws
BadMethodCallException
Return values
string

getMetadata()

public getMetadata([string|null $key = null ]) : array<string|int, mixed>|null
Parameters
$key : string|null = null
Return values
array<string|int, mixed>|null

read()

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

seek()

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

write()

public write(string $string) : int
Parameters
$string : string
Tags
throws
BadMethodCallException
Return values
int
On this page

Search results