\Metroplex\EdifactSerializer

Serialize a bunch of segments into an EDI message string.

Summary

Methods
Properties
Constants
setComponentSeparator()
setDataSeparator()
setDecimalPoint()
setEscapeCharacter()
setSegmentTerminator()
serialize()
No public properties found
No constants found
setControlCharacter()
$componentSeparator
$dataSeparator
$decimalPoint
$escapeCharacter
$segmentTerminator
N/A
No private methods found
No private properties found
N/A

Properties

$componentSeparator

$componentSeparator : string

Type

string — The control character used to separate components.

$dataSeparator

$dataSeparator : string

Type

string — The control character used to separate data elements.

$decimalPoint

$decimalPoint : string

Type

string — The control character used as a decimal point.

$escapeCharacter

$escapeCharacter : string

Type

string — The control character used as an escape character.

$segmentTerminator

$segmentTerminator : string

Type

string — The control character used as an segment terminator.

Methods

setComponentSeparator()

setComponentSeparator(string  $char) : static

Set the control character used to separate components.

Parameters

string $char

The character to use

Returns

static

setDataSeparator()

setDataSeparator(string  $char) : static

Set the control character used to separate data elements.

Parameters

string $char

The character to use

Returns

static

setDecimalPoint()

setDecimalPoint(string  $char) : static

Set the control character used as a decimal point.

Parameters

string $char

The character to use

Returns

static

setEscapeCharacter()

setEscapeCharacter(string  $char) : static

Set the control character used as an escape character.

Parameters

string $char

The character to use

Returns

static

setSegmentTerminator()

setSegmentTerminator(string  $char) : static

Set the control character used as an segment terminator.

Parameters

string $char

The character to use

Returns

static

serialize()

serialize(  $segments) : string

Serialize all the passed segments.

Parameters

$segments

Returns

string

setControlCharacter()

setControlCharacter(string  $type, string  $char) : static

Set a control character.

Parameters

string $type

The type of control character to set

string $char

The character to set it to

Returns

static