| Total Complexity | 5 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ActiveBannerSelectionData implements BannerSelectionData { |
||
| 13 | |||
| 14 | 1 | public function __construct( |
|
| 15 | private readonly Visitor $visitorData, |
||
| 16 | private readonly string $bannerIdentifier, |
||
| 17 | private readonly \DateTime $campaignEnd |
||
| 18 | ) { |
||
| 19 | 1 | } |
|
| 20 | |||
| 21 | 1 | public function displayBanner(): bool { |
|
| 22 | 1 | return true; |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function getVisitorData(): Visitor { |
|
| 26 | 1 | return $this->visitorData; |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | public function getBannerIdentifier(): string { |
|
| 30 | 1 | return $this->bannerIdentifier; |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function getCampaignEnd(): \DateTime { |
|
| 35 | } |
||
| 36 | } |
||
| 37 |