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

MaskedCardNumberResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 45
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A getLongMaskedCln() 0 4 1
A getMaskedCln() 0 4 1
A getExpiration() 0 4 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