Completed
Pull Request — master (#16)
by Josef
05:49
created

MaskedCardNumberResponse::getMaskedCln()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
	public function __construct(
26
		string $longMaskedCln,
27
		string $maskedCln,
28
		DateTimeImmutable $expiration
29
	)
30
	{
31
		$this->longMaskedCln = $longMaskedCln;
32
		$this->maskedCln = $maskedCln;
33
		$this->expiration = $expiration;
34
	}
35
36
	public function getLongMaskedCln(): string
37
	{
38
		return $this->longMaskedCln;
39
	}
40
41
	public function getMaskedCln(): string
42
	{
43
		return $this->maskedCln;
44
	}
45
46
	public function getExpiration(): DateTimeImmutable
47
	{
48
		return $this->expiration;
49
	}
50
51
}
52