InterfaceParserVisitor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A visitInterface() 0 5 2
1
<?php
2
declare(strict_types=1);
3
4
namespace gossi\codegen\parser\visitor;
5
6
use gossi\codegen\parser\visitor\parts\StructParserPart;
7
use PhpParser\Node\Stmt\Interface_;
8
9
class InterfaceParserVisitor extends StructParserVisitor {
10
11
	use StructParserPart;
12
13 2
	public function visitInterface(Interface_ $node) {
14 2
		foreach ($node->extends as $name) {
15 1
			$this->struct->addInterface(implode('\\', $name->parts));
16
		}
17 2
	}
18
}
19