| 1 | <?php |
||
| 9 | class E200 extends Element implements ElementInterface |
||
| 10 | { |
||
| 11 | const REG = 'E200'; |
||
| 12 | const LEVEL = 2; |
||
| 13 | const PARENT = 'E001'; |
||
| 14 | |||
| 15 | protected $parameters = [ |
||
| 16 | 'UF' => [ |
||
| 17 | 'type' => 'string', |
||
| 18 | 'regex' => '^[a-zA-Z]{2}$', |
||
| 19 | 'required' => true, |
||
| 20 | 'info' => 'Sigla da unidade da federação a que se refere a apuração do ICMS ST', |
||
| 21 | 'format' => '' |
||
| 22 | ], |
||
| 23 | 'DT_INI' => [ |
||
| 24 | 'type' => 'string', |
||
| 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 inicial a que a apuração se refere', |
||
| 28 | 'format' => '' |
||
| 29 | ], |
||
| 30 | 'DT_FIN' => [ |
||
| 31 | 'type' => 'string', |
||
| 32 | 'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$', |
||
| 33 | 'required' => true, |
||
| 34 | 'info' => 'Data final a que a apuração se refere', |
||
| 35 | 'format' => '' |
||
| 36 | ] |
||
| 37 | ]; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Constructor |
||
| 41 | * @param \stdClass $std |
||
| 42 | */ |
||
| 43 | public function __construct(\stdClass $std) |
||
| 48 | } |
||
| 49 |