| 1 | <?php |
||
| 9 | class Z1925 extends Element implements ElementInterface |
||
| 10 | { |
||
| 11 | const REG = '1925'; |
||
| 12 | const LEVEL = 5; |
||
| 13 | const PARENT = '1920'; |
||
| 14 | |||
| 15 | protected $parameters = [ |
||
| 16 | 'COD_INF_ADIC' => [ |
||
| 17 | 'type' => 'string', |
||
| 18 | 'regex' => '^.{8}$', |
||
| 19 | 'required' => true, |
||
| 20 | 'info' => 'Código da informação adicional conforme tabela a ser ' |
||
| 21 | .'definida pelas SEFAZ, conforme tabela definida no item 5.2.', |
||
| 22 | 'format' => '' |
||
| 23 | ], |
||
| 24 | 'VL_INF_ADIC' => [ |
||
| 25 | 'type' => 'numeric', |
||
| 26 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
||
| 27 | 'required' => true, |
||
| 28 | 'info' => 'Valor referente à informação adicional', |
||
| 29 | 'format' => '15v2' |
||
| 30 | ], |
||
| 31 | 'DESCR_COMPL_AJ' => [ |
||
| 32 | 'type' => 'string', |
||
| 33 | 'regex' => '^.*$', |
||
| 34 | 'required' => false, |
||
| 35 | 'info' => 'Descrição complementar do ajuste', |
||
| 36 | 'format' => '' |
||
| 37 | ] |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor |
||
| 42 | * @param \stdClass $std |
||
| 43 | */ |
||
| 44 | public function __construct(\stdClass $std) |
||
| 49 | } |
||
| 50 |