yxorP Documentation

MultipartStream
in package
implements StreamInterface Uses AStreamDecoratorTrait

Interfaces, Classes, Traits and Enums

StreamInterface
Describes a data stream.

Table of Contents

$boundary  : mixed
__call()  : mixed
__construct()  : mixed
__get()  : mixed
__toString()  : mixed
close()  : mixed
detach()  : mixed
eof()  : bool
getBoundary()  : mixed
getContents()  : string
getMetadata()  : mixed
getSize()  : int|null
isReadable()  : bool
isSeekable()  : bool
isWritable()  : bool
Returns whether or not the stream is writable.
read()  : string
rewind()  : mixed
seek()  : mixed
tell()  : int
write()  : int
createStream()  : AppendStream
addElement()  : mixed
createElement()  : array<string|int, mixed>
getHeader()  : mixed
getHeaders()  : string

Properties

Methods

__call()

public __call(mixed $method, array<string|int, mixed> $args) : mixed
Parameters
$method : mixed
$args : array<string|int, mixed>
Return values
mixed

__construct()

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

getMetadata()

public getMetadata([mixed $key = null ]) : mixed
Parameters
$key : mixed = null
Return values
mixed

isWritable()

Returns whether or not the stream is writable.

public isWritable() : bool
Return values
bool

read()

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

seek()

public seek(int $offset[, int $whence = SEEK_SET ]) : mixed
Parameters
$offset : int
$whence : int = SEEK_SET
Return values
mixed

write()

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

addElement()

private addElement(AppendStream $stream, array<string|int, mixed> $element) : mixed
Parameters
$stream : AppendStream
$element : array<string|int, mixed>
Return values
mixed

createElement()

private createElement(mixed $name, StreamInterface $stream, mixed $filename, array<string|int, mixed> $headers) : array<string|int, mixed>
Parameters
$name : mixed
$stream : StreamInterface
$filename : mixed
$headers : array<string|int, mixed>
Return values
array<string|int, mixed>

getHeader()

private getHeader(array<string|int, mixed> $headers, mixed $key) : mixed
Parameters
$headers : array<string|int, mixed>
$key : mixed
Return values
mixed

getHeaders()

private getHeaders(array<string|int, mixed> $headers) : string
Parameters
$headers : array<string|int, mixed>
Return values
string

Search results