MessagePartStreamDecorator
in package
implements
StreamInterface
Uses
StreamDecoratorTrait
Provides a readable stream for a MessagePart.
Tags
Interfaces, Classes, Traits and Enums
- StreamInterface
Table of Contents
- $part : IMessagePart
- $stream : StreamInterface|null
- __construct() : mixed
- read() : string
- Overridden to wrap exceptions in MessagePartReadException which provides 'getPart' to inspect the part the error occurs on.
Properties
$part
protected
IMessagePart
$part
The part to read from.
$stream
protected
StreamInterface|null
$stream
Methods
__construct()
public
__construct(IMessagePart $part[, StreamInterface|null $stream = null ]) : mixed
Parameters
- $part : IMessagePart
- $stream : StreamInterface|null = null
Return values
mixed —read()
Overridden to wrap exceptions in MessagePartReadException which provides 'getPart' to inspect the part the error occurs on.
public
read(int $length) : string
Parameters
- $length : int