Serializer
in package
implements
SerializerInterface
FinalYes
Serialize a bunch of segments into an EDI message string.
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- serialize() : string
- Serialize all the passed segments.
- escape() : string
- Escapes control characters.
Properties
$characters
private
CharactersInterface
$characters
Methods
__construct()
public
__construct([CharactersInterface|null $characters = null ]) : mixed
Parameters
- $characters : CharactersInterface|null = null
serialize()
Serialize all the passed segments.
public
serialize(SegmentInterface ...$segments) : string
Parameters
- $segments : SegmentInterface
Return values
stringescape()
Escapes control characters.
private
escape(string|null $string) : string
Parameters
- $string : string|null