Completed
Pull Request — master (#487)
by
unknown
21:59 queued 09:13
created

F001::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace NFePHP\EFD\Elements\Contribuicoes;
4
5
use NFePHP\EFD\Common\Element;
6
use NFePHP\EFD\Common\ElementInterface;
7
use \stdClass;
8
9
class F001 extends Element implements ElementInterface
10
{
11
    const REG = 'F001';
12
    const LEVEL = 0;
13
    const PARENT = '1';
14
15
    protected $parameters = [
16
        'IND_MOV' => [
17
            'type' => 'string',
18
            'regex' => '^(0|1)$',
19
            'required' => false,
20
            'info' => 'Indicador de movimento: 0 - Bloco com dados informados; 1 - Bloco sem dados informados',
21
            'format' => ''
22
        ],
23
24
    ];
25
26
    /**
27
     * Constructor
28
     * @param \stdClass $std
29
     */
30
    public function __construct(\stdClass $std)
31
    {
32
        parent::__construct(self::REG);
33
        $this->std = $this->standarize($std);
34
    }
35
}
36