<?php
namespace App\Worldspan\LineParser\Types\Line;

/**
 *
 * @author Lucian Sirbu
 */
class R4 extends \App\Worldspan\LineParser\Types\WorldspanBaseLine
{
	protected $extractRegexp = "/^(?P<rawData>4.+)/sm";

	protected $children = [
        /**
         * This record contains the mailing address for delivery of the tickets
         */

        ['key'=> 'key',                               'type'=> 'Constant',          'len'=> 1,     'val'=> '4',   'req'=> true,],             // Record identifier
        ['key'=> 'FirstLineOfAddress',                'type'=> 'StringRaw',            'len'=> [0, 38],         'req'=> false,],             // First line of address
        ['key'=> '#013',                              'type'=> 'Separator',                                       'req'=> false,],             // Field separator
        ['key'=> 'SecondLineOfAddress',               'type'=> 'StringRaw',            'len'=> [0, 38],         'req'=> false,],             // Second line of address
        ['key'=> '#015',                              'type'=> 'Separator',                                       'req'=> false,],             // Field separator
        ['key'=> 'ThirdLineOfAddress',                'type'=> 'StringRaw',            'len'=> [0, 38],         'req'=> false,],             // Third line of address
        ['key'=> '#017',                              'type'=> 'Separator',                                       'req'=> false,],             // Field separator
        ['key'=> 'FourthLineOfAddress',               'type'=> 'StringRaw',            'len'=> [0, 38],         'req'=> false,],             // Fourth line of address
        ['key'=> '#019',                              'type'=> 'Separator',                                       'req'=> false,],             // Field separator
        ['key'=> 'FifthLineOfAddress',                'type'=> 'StringRaw',            'len'=> [0, 38],         'req'=> false,],             // Fifth line of address (see Note 1) APT._3#SAN_RAFAEL_CA_94901


	];
}
