1 | <?php |
||
15 | class Z0305 extends Element implements ElementInterface |
||
16 | { |
||
17 | const REG = '0305'; |
||
18 | const LEVEL = 0; |
||
19 | const PARENT = ''; |
||
20 | |||
21 | protected $parameters = [ |
||
22 | 'COD_CCUS' => [ |
||
23 | 'type' => 'string', |
||
24 | 'regex' => '^.{1,60}$', |
||
25 | 'required' => true, |
||
26 | 'info' => 'Código do centro de custo', |
||
27 | 'format' => '' |
||
28 | ], |
||
29 | 'FUNC' => [ |
||
30 | 'type' => 'string', |
||
31 | 'regex' => '^.{1,255}$', |
||
32 | 'required' => true, |
||
33 | 'info' => 'Descrição sucinta da função do bem', |
||
34 | 'format' => '' |
||
35 | ], |
||
36 | 'VIDA_UTIL' => [ |
||
37 | 'type' => 'integer', |
||
38 | 'regex' => '^[0-9]{1,3}$', |
||
39 | 'required' => false, |
||
40 | 'info' => 'Vida útil estimada do bem, em número de meses', |
||
41 | 'format' => '' |
||
42 | ], |
||
43 | ]; |
||
44 | |||
45 | /** |
||
46 | * Constructor |
||
47 | * @param stdClass $std |
||
48 | */ |
||
49 | public function __construct(stdClass $std) |
||
54 | } |
||
55 |