1 | <?php |
||
9 | class Z0600 extends Element implements ElementInterface |
||
10 | { |
||
11 | const REG = '0600'; |
||
12 | const LEVEL = 2; |
||
13 | const PARENT = '0001'; |
||
14 | |||
15 | protected $parameters = [ |
||
16 | 'DT_ALT' => [ |
||
17 | 'type' => 'string', |
||
18 | 'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$', |
||
19 | 'required' => false, |
||
20 | 'info' => 'Data da inclusão/alteração.', |
||
21 | 'format' => '' |
||
22 | ], |
||
23 | 'COD_CCUS' => [ |
||
24 | 'type' => 'string', |
||
25 | 'regex' => '^.{0,255}$', |
||
26 | 'required' => false, |
||
27 | 'info' => 'Código do centro de custos.', |
||
28 | 'format' => '' |
||
29 | ], |
||
30 | 'CCUS' => [ |
||
31 | 'type' => 'string', |
||
32 | 'regex' => '^.{0,60}$', |
||
33 | 'required' => false, |
||
34 | 'info' => 'Nome do centro de custos.', |
||
35 | 'format' => '' |
||
36 | ], |
||
37 | |||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * Constructor |
||
42 | * @param \stdClass $std |
||
43 | */ |
||
44 | public function __construct(\stdClass $std) |
||
49 | } |
||
50 |