MaskedCardNumberResponse::getMaskedCln()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
ccs 2
cts 2
cp 1
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
	/** @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