BlockC   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace NFePHP\ECD\Blocks;
4
5
use NFePHP\ECD\Elements;
6
use NFePHP\ECD\Common\Block;
7
use NFePHP\ECD\Common\BlockInterface;
8
9
/**
10
 * Classe constutora do bloco C Informações Recuperadas da ECD Anterior
11
 *
12
 * Esta classe irá usar um recurso para invocar as classes de cada um dos elementos
13
 * constituintes listados
14
 *
15
 * @method Elements\C001 c001(\stdClass $std) Constructor element C001
16
 * @method Elements\C040 c040(\stdClass $std) Constructor element C040
17
 * @method Elements\C150 c150(\stdClass $std) Constructor element C150
18
 * @method Elements\C155 c155(\stdClass $std) Constructor element C155
19
 * @method Elements\C600 c600(\stdClass $std) Constructor element C600
20
 * @method Elements\C650 c650(\stdClass $std) Constructor element C650
21
 */
22
final class BlockC extends Block implements BlockInterface
23
{
24
    const TOTAL = 'C990';
25
    
26
    public $elements = [
27
        'c001' => ['class' => Elements\C001::class, 'level' => 1, 'type' => 'single'],
28
        'c040' => ['class' => Elements\C040::class, 'level' => 2, 'type' => 'single'],
29
        'c150' => ['class' => Elements\C150::class, 'level' => 3, 'type' => 'single'],
30
        'c155' => ['class' => Elements\C155::class, 'level' => 4, 'type' => 'multiple'],
31
        'c600' => ['class' => Elements\C600::class, 'level' => 3, 'type' => 'multiple'],
32
        'c650' => ['class' => Elements\C650::class, 'level' => 4, 'type' => 'multiple'],
33
    ];
34
    
35
    public function __construct()
36
    {
37
        parent::__construct(self::TOTAL);
38
    }
39
}
40