MailMimeParser 4.0

MessagePartStreamDecorator
in package
implements StreamInterface Uses StreamDecoratorTrait

Provides a readable stream for a MessagePart.

Tags
author

Zaahid Bateson

Interfaces, Classes, Traits and Enums

StreamInterface

Table of Contents

$part  : IMessagePart
$stream  : StreamInterface|null
__call()  : mixed
__construct()  : mixed
__get()  : StreamInterface
__toString()  : string
close()  : void
detach()  : mixed
eof()  : bool
getContents()  : string
getMetadata()  : mixed
getSize()  : int|null
isReadable()  : bool
isSeekable()  : bool
isWritable()  : bool
read()  : string
Overridden to wrap exceptions in MessagePartReadException which provides 'getPart' to inspect the part the error occurs on.
rewind()  : void
seek()  : void
tell()  : int
write()  : int
resolveStream()  : StreamInterface
Returns the underlying stream, lazily creating it via createStream() if not yet initialized.

Properties

Methods

__call()

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

__get()

public __get(string $name) : StreamInterface
Parameters
$name : string
Return values
StreamInterface

getMetadata()

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

seek()

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

resolveStream()

Returns the underlying stream, lazily creating it via createStream() if not yet initialized.

protected resolveStream() : StreamInterface
Return values
StreamInterface

Search results