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

EvidenceEnvironment::getWsdlPath()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 0
crap 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