FactoryInterface
in
Factory for producing segments.
Table of Contents
Methods
- createSegment() : SegmentInterface
- Create a new instance of the relevant class type.
Methods
createSegment()
Create a new instance of the relevant class type.
public
createSegment(CharactersInterface $characters, string $name, mixed ...$elements) : SegmentInterface
Parameters
- $characters : CharactersInterface
-
The control characters
- $name : string
-
The name of the segment
- $elements : mixed
-
The data elements for this segment