Completed
Push — master ( 65985f...aab2e6 )
by Roberto
17s queued 12s
created

I001::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
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
8 View Code Duplication
class I001 extends Element implements ElementInterface
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
    const REG = 'I001';
11
    const LEVEL = 1;
12
    const PARENT = '0000';
13
14
    protected $parameters = [
15
        'IND_MOV' => [
16
            'type' => 'string',
17
            'regex' => '^(0|1)$',
18
            'required' => false,
19
            'info' => 'Indicador de movimento' .
20
                ' 0- Bloco com dados informados' .
21
                ' 1- Bloco sem dados informados',
22
            'format' => ''
23
        ],
24
25
    ];
26
27
    /**
28
     * Constructor
29
     * @param \stdClass $std
30
     */
31
    public function __construct(\stdClass $std)
32
    {
33
        parent::__construct(self::REG);
34
        $this->std = $this->standarize($std);
35
    }
36
}
37