| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types = 1); |
||
| 7 | class TransactionSettlementResponse |
||
| 8 | { |
||
| 9 | |||
| 10 | /** @var DateTimeImmutable */ |
||
| 11 | private $createdDate; |
||
| 12 | |||
| 13 | /** @var DateTimeImmutable|null */ |
||
| 14 | private $authDate; |
||
| 15 | |||
| 16 | /** @var DateTimeImmutable|null */ |
||
| 17 | private $settlementDate; |
||
| 18 | |||
| 19 | 1 | public function __construct( |
|
| 20 | DateTimeImmutable $createdDate, |
||
| 21 | ?DateTimeImmutable $authDate, |
||
| 22 | ?DateTimeImmutable $settlementDate |
||
| 23 | ) |
||
| 24 | { |
||
| 25 | 1 | $this->createdDate = $createdDate; |
|
| 26 | 1 | $this->authDate = $authDate; |
|
| 27 | 1 | $this->settlementDate = $settlementDate; |
|
| 28 | 1 | } |
|
| 29 | |||
| 30 | 1 | public function getCreatedDate(): DateTimeImmutable |
|
| 31 | { |
||
| 32 | 1 | return $this->createdDate; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function getAuthDate(): ?DateTimeImmutable |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | public function getSettlementDate(): ?DateTimeImmutable |
|
| 43 | } |
||
| 44 | |||
| 45 | } |
||
| 46 |