<?php
namespace App\Worldspan\LineParser\Types\Line; class RD extends \App\Worldspan\LineParser\Types\WorldspanBaseLine { protected $extractRegexp = "/^(?P<rawData>D.+)/sm"; protected $children = [ ['key'=> 'key', 'type'=> 'Constant', 'len'=> 1, 'val'=> 'D', 'req'=> true,], ['key'=> 'DocumentTypeIndicatorTTkt', 'type'=> 'Alphanumeric', 'len'=> 1, 'req'=> false,], ['key'=> 'OriginalIssueDocumentNumber', 'type'=> 'StringDelimitedByChar', 'len'=> [0, 14], 'val'=> '\\', 'req'=> false,], ['key'=> '#019', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'PlaceOfIssue', 'type'=> 'Alphanumeric', 'len'=> 3, 'req'=> false,], ['key'=> '#021', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'OriginalIssueDate', 'type'=> 'Date', 'len'=> 7, 'fmt'=> 'DDMMMYY', 'req'=> false,], ['key'=> '#024', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'OriginalIssueAgency', 'type'=> 'Integer', 'len'=> 7, 'req'=> false,], ['key'=> 'key', 'type'=> 'Constant', 'len'=> 1, 'val'=> 'D', 'req'=> false,], ['key'=> 'key', 'type'=> 'Constant', 'len'=> 1, 'val'=> 'P', 'req'=> false,], ['key'=> 'key', 'type'=> 'Constant', 'len'=> 1, 'val'=> '*', 'req'=> false,], ['key'=> '#031', 'type'=> 'Separator', 'req'=> false,], ['key'=> 'FreeformData', 'type'=> 'StringRaw', 'len'=> [0, 31], 'req'=> false,], ]; } 