Function_   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 75%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFullyQualifiedName() 0 7 2
1
<?php
2
3
namespace PHPSemVerChecker\Node\Statement;
4
5
use PhpParser\Node\Stmt\Function_ as BaseFunction;
6
7
class Function_
8
{
9
	/**
10
	 * @param \PhpParser\Node\Stmt\Function_ $function
11
	 * @return string
12
	 */
13 13
	public static function getFullyQualifiedName(BaseFunction $function)
14
	{
15 13
		if (isset($function->namespacedName)) {
16
			return $function->namespacedName->toString() . '::' . $function->name->toString();
17
		}
18 13
		return $function->name->toString();
19
	}
20
}
21