class Encoder implements EncoderInterface
A general-purpose encoder implementation for composing custom encoders.
Methods
__construct(TransformInterface $encodeTransform)
Construct a new encoder. |
||
TransformInterface |
encodeTransform()
Get the encode transform. |
|
string |
encode(string $data)
Encode the supplied data. |
|
TransformStreamInterface |
createEncodeStream(integer|null $bufferSize = null)
Create a new encode stream. |
Details
at line 28
public
__construct(TransformInterface $encodeTransform)
Construct a new encoder.
at line 38
public TransformInterface
encodeTransform()
Get the encode transform.
at line 51
public string
encode(string $data)
Encode the supplied data.
at line 70
public TransformStreamInterface
createEncodeStream(integer|null $bufferSize = null)
Create a new encode stream.