| 1 | <?php |
||
| 18 | class K100 extends Element implements ElementInterface |
||
| 19 | { |
||
| 20 | const REG = 'K100'; |
||
| 21 | const LEVEL = 2; |
||
| 22 | const PARENT = 'K001'; |
||
| 23 | |||
| 24 | protected $parameters = [ |
||
| 25 | 'DT_INI' => [ |
||
| 26 | 'type' => 'string', |
||
| 27 | 'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$', |
||
| 28 | 'required' => true, |
||
| 29 | 'info' => 'Data inicial a que a apuração se refere', |
||
| 30 | 'format' => '' |
||
| 31 | ], |
||
| 32 | 'DT_FIN' => [ |
||
| 33 | 'type' => 'string', |
||
| 34 | 'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$', |
||
| 35 | 'required' => true, |
||
| 36 | 'info' => 'Data final a que a apuração se refere', |
||
| 37 | 'format' => '' |
||
| 38 | ] |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Constructor |
||
| 43 | * @param \stdClass $std |
||
| 44 | */ |
||
| 45 | public function __construct(\stdClass $std) |
||
| 50 | } |
||
| 51 |