EvidenceEnvironment::getWsdlPath()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
ccs 4
cts 4
cp 1
crap 2
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatEET;
4
5
use Consistence\Enum\Enum;
6
7
class EvidenceEnvironment extends Enum
8
{
9
10
	public const PLAYGROUND = 'playground';
11
	public 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