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

TransactionSettlementResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
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 51
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 getCreatedDate() 0 4 1
A getAuthDate() 0 4 1
A getSettlementDate() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Call\Extension;
4
5
use DateTimeImmutable;
6
7
class TransactionSettlementResponse
8
{
9
10
	/**
11
	 * @var DateTimeImmutable
12
	 */
13
	private $createdDate;
14
15
	/**
16
	 * @var DateTimeImmutable|null
17
	 */
18
	private $authDate;
19
20
	/**
21
	 * @var DateTimeImmutable|null
22
	 */
23
	private $settlementDate;
24
25 1
	public function __construct(
26
		DateTimeImmutable $createdDate,
27
		DateTimeImmutable $authDate = null,
28
		DateTimeImmutable $settlementDate = null
29
	)
30
	{
31 1
		$this->createdDate = $createdDate;
32 1
		$this->authDate = $authDate;
33 1
		$this->settlementDate = $settlementDate;
34 1
	}
35
36 1
	public function getCreatedDate(): DateTimeImmutable
37
	{
38 1
		return $this->createdDate;
39
	}
40
41
	/**
42
	 * @return DateTimeImmutable|null
43
	 */
44 1
	public function getAuthDate()
45
	{
46 1
		return $this->authDate;
47
	}
48
49
	/**
50
	 * @return DateTimeImmutable|null
51
	 */
52 1
	public function getSettlementDate()
53
	{
54 1
		return $this->settlementDate;
55
	}
56
57
}
58