Documentation

Characters
in package
implements CharactersInterface

FinalYes

Handle the control characters used in EDI messages.

Table of Contents

Interfaces

CharactersInterface
Handle the control characters used in EDI messages.

Properties

$componentSeparator  : string
$dataSeparator  : string
$decimalPoint  : string
$escapeCharacter  : string
$includeUNASegment  : bool
$reservedSpace  : string
$segmentTerminator  : string

Methods

getComponentSeparator()  : string
Get the control character used to separate components.
getDataSeparator()  : string
Get the control character used to separate data elements.
getDecimalPoint()  : string
Get the control character used as a decimal point.
getEscapeCharacter()  : string
Get the control character used as an escape character.
getReservedSpace()  : string
Get the control character used as the reserved space.
getSegmentSeparator()  : string
Get the character used to separate segment tags from their data components.
getSegmentTerminator()  : string
Get the control character used as a segment terminator.
includesUNASegment()  : bool
Check whether the UNA segment should be part of the message or not.
withComponentSeparator()  : CharactersInterface
Set the control character used to separate components.
withDataSeparator()  : CharactersInterface
Set the control character used to separate data elements.
withDecimalPoint()  : CharactersInterface
Set the control character used as a decimal point.
withEscapeCharacter()  : CharactersInterface
Set the control character used as an escape character.
withReservedSpace()  : CharactersInterface
Set the control character used as the reserved space.
withSegmentTerminator()  : CharactersInterface
Set the control character used as a segment terminator.
withUNASegment()  : self
Set whether the UNA segment should be part of the message or not.
withControlCharacter()  : CharactersInterface
Set a control character.

Properties

$componentSeparator

private string $componentSeparator = ":"

The control character used to separate components.

$dataSeparator

private string $dataSeparator = "+"

The control character used to separate data elements.

$decimalPoint

private string $decimalPoint = ","

The control character used as a decimal point.

$escapeCharacter

private string $escapeCharacter = "?"

The control character used as an escape character.

$includeUNASegment

private bool $includeUNASegment = true

Whether we should include the UNA segment or not.

$reservedSpace

private string $reservedSpace = " "

The reserved space.

$segmentTerminator

private string $segmentTerminator = "'"

The control character used as an segment terminator.

Methods

getComponentSeparator()

Get the control character used to separate components.

public getComponentSeparator() : string
Return values
string

getDataSeparator()

Get the control character used to separate data elements.

public getDataSeparator() : string
Return values
string

getDecimalPoint()

Get the control character used as a decimal point.

public getDecimalPoint() : string
Return values
string

getEscapeCharacter()

Get the control character used as an escape character.

public getEscapeCharacter() : string
Return values
string

getReservedSpace()

Get the control character used as the reserved space.

public getReservedSpace() : string
Return values
string

getSegmentSeparator()

Get the character used to separate segment tags from their data components.

public getSegmentSeparator() : string
Return values
string

getSegmentTerminator()

Get the control character used as a segment terminator.

public getSegmentTerminator() : string
Return values
string

includesUNASegment()

Check whether the UNA segment should be part of the message or not.

public includesUNASegment() : bool
Return values
bool

withUNASegment()

Set whether the UNA segment should be part of the message or not.

public withUNASegment(bool $include) : self
Parameters
$include : bool
Return values
self
On this page

Search results