Completed
Push — master ( b59c0c...c68fa7 )
by Josef
08:24
created

MaskedCardNumberResponse::getLongMaskedCln()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Call\Extension;
4
5
use DateTimeImmutable;
6
7
class MaskedCardNumberResponse
8
{
9
10
	/**
11
	 * @var string
12
	 */
13
	private $longMaskedCln;
14
15
	/**
16
	 * @var string
17
	 */
18
	private $maskedCln;
19
20
	/**
21
	 * @var DateTimeImmutable
22
	 */
23
	private $expiration;
24
25 1
	public function __construct(
26
		string $longMaskedCln,
27
		string $maskedCln,
28
		DateTimeImmutable $expiration
29
	)
30
	{
31 1
		$this->longMaskedCln = $longMaskedCln;
32 1
		$this->maskedCln = $maskedCln;
33 1
		$this->expiration = $expiration;
34 1
	}
35
36 1
	public function getLongMaskedCln(): string
37
	{
38 1
		return $this->longMaskedCln;
39
	}
40
41 1
	public function getMaskedCln(): string
42
	{
43 1
		return $this->maskedCln;
44
	}
45
46 1
	public function getExpiration(): DateTimeImmutable
47
	{
48 1
		return $this->expiration;
49
	}
50
51
}
52