| 1 | <?php |
||
| 16 | class Z0300 extends Element implements ElementInterface |
||
| 17 | { |
||
| 18 | const REG = '0300'; |
||
| 19 | const LEVEL = 2; |
||
| 20 | const PARENT = ''; |
||
| 21 | |||
| 22 | protected $parameters = [ |
||
| 23 | 'COD_IND_BEM' => [ |
||
| 24 | 'type' => 'string', |
||
| 25 | 'regex' => '^.{1,60}$', |
||
| 26 | 'required' => true, |
||
| 27 | 'info' => 'Código individualizado do bem ou componente', |
||
| 28 | 'format' => '' |
||
| 29 | ], |
||
| 30 | 'IDENT_MERC' => [ |
||
| 31 | 'type' => 'integer', |
||
| 32 | 'regex' => '^[0-1]{1}$', |
||
| 33 | 'required' => true, |
||
| 34 | 'info' => 'Identificação do tipo de mercadoria', |
||
| 35 | 'format' => '' |
||
| 36 | ], |
||
| 37 | 'DESCR_ITEM' => [ |
||
| 38 | 'type' => 'string', |
||
| 39 | 'regex' => '^.{1,255}$', |
||
| 40 | 'required' => true, |
||
| 41 | 'info' => 'Descrição do bem ou componente', |
||
| 42 | 'format' => '' |
||
| 43 | ], |
||
| 44 | 'COD_PRNC' => [ |
||
| 45 | 'type' => 'string', |
||
| 46 | 'regex' => '^.{0,60}$', |
||
| 47 | 'required' => false, |
||
| 48 | 'info' => 'Código de cadastro do bem principal', |
||
| 49 | 'format' => '' |
||
| 50 | ], |
||
| 51 | 'COD_CTA' => [ |
||
| 52 | 'type' => 'string', |
||
| 53 | 'regex' => '^.{1,60}$', |
||
| 54 | 'required' => true, |
||
| 55 | 'info' => 'Código da conta analítica de contabilização', |
||
| 56 | 'format' => '' |
||
| 57 | ], |
||
| 58 | 'NR_PARC' => [ |
||
| 59 | 'type' => 'integer', |
||
| 60 | 'regex' => '^[0-9]{1,3}$', |
||
| 61 | 'required' => false, |
||
| 62 | 'info' => 'Número total de parcelas a serem apropriadas', |
||
| 63 | 'format' => '' |
||
| 64 | ], |
||
| 65 | ]; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Constructor |
||
| 69 | * @param stdClass $std |
||
| 70 | */ |
||
| 71 | public function __construct(stdClass $std) |
||
| 76 | } |
||
| 77 |