EDI\Interpreter::__construct PHP Method

__construct() public method

Split multiple messages and process
public __construct ( string $xmlMsg, array $xmlSeg, string $xmlSvc, array $messageTextConf = null )
$xmlMsg string Path to XML Message representation
$xmlSeg array Segments processed by EDI\Analyser::loadSegmentsXml
$xmlSvc string Service segments processed by EDI\Analyser::loadSegmentsXml
$messageTextConf array Personalisation of error messages
    public function __construct($xmlMsg, $xmlSeg, $xmlSvc, $messageTextConf = null)
    {
        $this->xmlMsg = simplexml_load_file($xmlMsg);
        $this->xmlSeg = $xmlSeg;
        $this->xmlSvc = $xmlSvc;
        if ($messageTextConf !== null) {
            $this->messageTextConf = array_replace($this->messageTextConf, $messageTextConf);
        }
    }