for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace WMDE\BannerServer\UseCase\BannerSelection;
use WMDE\BannerServer\Entity\Visitor;
/**
* @license GPL-2.0-or-later
*/
class EmptyBannerSelectionData implements BannerSelectionData {
public function __construct(
private readonly Visitor $visitorData
) {
}
public function displayBanner(): bool {
return false;
public function getVisitorData(): Visitor {
return $this->visitorData;
public function getBannerIdentifier(): string {
throw new \LogicException( 'Empty banner selection does not contain banner data.' );
public function getCampaignEnd(): \DateTime {
throw new \LogicException( 'Empty banner selection does not contain campaign data.' );