\Metroplex\EdifactControlCharacterTrait

Handle the control characters used in EDI messages.

Summary

Methods
Properties
Constants
setComponentSeparator()
setDataSeparator()
setDecimalPoint()
setEscapeCharacter()
setSegmentTerminator()
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

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