| 1 | <?php |
||
| 9 | class K301 extends Element implements ElementInterface |
||
| 10 | { |
||
| 11 | const REG = 'K301'; |
||
| 12 | const LEVEL = 4; |
||
| 13 | const PARENT = 'K300'; |
||
| 14 | |||
| 15 | protected $parameters = [ |
||
| 16 | 'COD_ITEM' => [ |
||
| 17 | 'type' => 'string', |
||
| 18 | 'regex' => '^.{1,60}$', |
||
| 19 | 'required' => true, |
||
| 20 | 'info' => 'Código do item produzido (campo 02 do Registro 0200)', |
||
| 21 | 'format' => '' |
||
| 22 | ], |
||
| 23 | 'QTD' => [ |
||
| 24 | 'type' => 'numeric', |
||
| 25 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
||
| 26 | 'required' => true, |
||
| 27 | 'info' => 'Quantidade produzida', |
||
| 28 | 'format' => '15v3' |
||
| 29 | ] |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor |
||
| 34 | * @param \stdClass $std |
||
| 35 | */ |
||
| 36 | public function __construct(\stdClass $std) |
||
| 41 | } |
||
| 42 |