| 1 | <?php |
||
| 9 | class Z1360 extends Element implements ElementInterface |
||
| 10 | { |
||
| 11 | const REG = '1360'; |
||
| 12 | const LEVEL = 3; |
||
| 13 | const PARENT = '1350'; |
||
| 14 | |||
| 15 | protected $parameters = [ |
||
| 16 | 'NUM_LACRE' => [ |
||
| 17 | 'type' => 'string', |
||
| 18 | 'regex' => '^.{1,20}$', |
||
| 19 | 'required' => true, |
||
| 20 | 'info' => 'Número do Lacre associado na Bomba', |
||
| 21 | 'format' => '' |
||
| 22 | ], |
||
| 23 | 'DT_APLICACAO' => [ |
||
| 24 | 'type' => 'integer', |
||
| 25 | 'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$', |
||
| 26 | 'required' => true, |
||
| 27 | 'info' => 'Data de aplicação do Lacre', |
||
| 28 | 'format' => '' |
||
| 29 | ] |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor |
||
| 34 | * @param \stdClass $std |
||
| 35 | */ |
||
| 36 | public function __construct(\stdClass $std) |
||
| 41 | } |
||
| 42 |