| Total Complexity | 8 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Campaign { |
||
| 11 | |||
| 12 | private $identifier; |
||
| 13 | private $start; |
||
| 14 | private $end; |
||
| 15 | private $impressionThreshold; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Bucket[] |
||
| 19 | */ |
||
| 20 | private $buckets; |
||
| 21 | |||
| 22 | public function __construct( string $identifier, \DateTime $start, \DateTime $end, array $buckets, ImpressionThresholdInterface $impressionThreshold ) { |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getIdentifier(): string { |
||
| 32 | } |
||
| 33 | |||
| 34 | public function isInActiveDateRange( \DateTime $time ): bool { |
||
| 37 | } |
||
| 38 | |||
| 39 | public function selectBucket( ?string $bucketId, callable $fallbackSelectionStrategy ): Bucket { |
||
| 46 | } |
||
| 47 | |||
| 48 | public function impressionThresholdReached( int $visitorImpressions ): bool { |
||
| 50 | } |
||
| 51 | } |