P199   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 36
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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 P199 extends Element implements ElementInterface
10
{
11
    const REG = 'P199';
12
    const LEVEL = 4;
13
    const PARENT = 'P100';
14
15
    protected $parameters = [
16
        'NUM_PROC' => [
17
            'type' => 'string',
18
            'regex' => '^.{0,20}$',
19
            'required' => false,
20
            'info' => 'Identificação do processo ou ato concessório ',
21
            'format' => ''
22
        ],
23
        'IND_PROC' => [
24
            'type' => 'string',
25
            'regex' => '^(1|3|9)$',
26
            'required' => false,
27
            'info' => 'Indicador da origem do processo ' .
28
                ' 1 - Justiça Federal ' .
29
                ' 3 – Secretaria da Receita Federal do Brasil 9 – Outros. ',
30
            'format' => ''
31
        ],
32
33
    ];
34
35
    /**
36
     * Constructor
37
     * @param \stdClass $std
38
     */
39
    public function __construct(\stdClass $std)
40
    {
41
        parent::__construct(self::REG);
42
        $this->std = $this->standarize($std);
43
    }
44
}
45