MaskedCardNumberResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 10
c 1
b 0
f 1
dl 0
loc 36
rs 10
ccs 11
cts 11
cp 1
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLongMaskedCln() 0 3 1
A getMaskedCln() 0 3 1
A getExpiration() 0 3 1
A __construct() 0 9 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Call\Extension;
4
5
use DateTimeImmutable;
6
7
class MaskedCardNumberResponse
8
{
9
10
	/** @var string */
11
	private $longMaskedCln;
12
13
	/** @var string */
14
	private $maskedCln;
15
16
	/** @var DateTimeImmutable */
17
	private $expiration;
18
19 1
	public function __construct(
20
		string $longMaskedCln,
21
		string $maskedCln,
22
		DateTimeImmutable $expiration
23
	)
24
	{
25 1
		$this->longMaskedCln = $longMaskedCln;
26 1
		$this->maskedCln = $maskedCln;
27 1
		$this->expiration = $expiration;
28 1
	}
29
30 1
	public function getLongMaskedCln(): string
31
	{
32 1
		return $this->longMaskedCln;
33
	}
34
35 1
	public function getMaskedCln(): string
36
	{
37 1
		return $this->maskedCln;
38
	}
39
40 1
	public function getExpiration(): DateTimeImmutable
41
	{
42 1
		return $this->expiration;
43
	}
44
45
}
46