Completed
Push — master ( 26109a...6e7ebd )
by T
02:01
created

InterfaceVisitor::leaveNode()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.2559

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 2.2559
1
<?php
2
3
namespace PHPSemVerChecker\Visitor;
4
5
use PhpParser\Node;
6
use PhpParser\Node\Stmt\Interface_;
7
8
class InterfaceVisitor extends VisitorAbstract
9
{
10
	/**
11
	 * @param \PhpParser\Node $node
12
	 */
13 4
	public function leaveNode(Node $node)
14
	{
15 4
		if ($node instanceof Interface_) {
16
			$this->registry->addInterface($node);
17
		}
18 4
	}
19
}
20