Completed
Push — master ( fa5ac7...eb2a5f )
by Jan
06:08
created

EvidenceEnvironment   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getWsdlPath() 0 7 2
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatEET;
4
5
use SlevomatEET\Type\Enum;
6
7
class EvidenceEnvironment extends Enum
8
{
9
10
	const PLAYGROUND = 'playground';
11
	const PRODUCTION = 'production';
12
13 3
	public function getWsdlPath(): string
14
	{
15 3
		if ($this->equalsValue(self::PRODUCTION)) {
16 1
			return __DIR__ . '/../wsdl/EETServiceSOAP_production.wsdl';
17
		}
18 2
		return __DIR__ . '/../wsdl/EETServiceSOAP_playground.wsdl';
19
	}
20
21
}
22