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
$boundary
private
mixed
$boundary
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 —__get()
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —close()
public
close() : mixed
Return values
mixed —detach()
public
detach() : mixed
Return values
mixed —eof()
public
eof() : bool
Return values
bool —getBoundary()
public
getBoundary() : mixed
Return values
mixed —getContents()
public
getContents() : string
Return values
string —getMetadata()
public
getMetadata([mixed $key = null ]) : mixed
Parameters
- $key : mixed = null
Return values
mixed —getSize()
public
getSize() : int|null
Return values
int|null —isReadable()
public
isReadable() : bool
Return values
bool —isSeekable()
public
isSeekable() : bool
Return values
bool —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 —rewind()
public
rewind() : mixed
Return values
mixed —seek()
public
seek(int $offset[, int $whence = SEEK_SET ]) : mixed
Parameters
- $offset : int
- $whence : int = SEEK_SET
Return values
mixed —tell()
public
tell() : int
Return values
int —write()
public
write(string $string) : int
Parameters
- $string : string
Return values
int —createStream()
protected
createStream(array<string|int, mixed> $elements) : AppendStream
Parameters
- $elements : array<string|int, mixed>
Return values
AppendStream —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>