| Total Complexity | 9 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Campaign { |
||
| 11 | |||
| 12 | private $identifier; |
||
| 13 | private $start; |
||
| 14 | private $end; |
||
| 15 | private $rng; |
||
| 16 | private $displayPercentage; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Bucket[] |
||
| 20 | */ |
||
| 21 | 7 | private $buckets; |
|
| 22 | 7 | ||
| 23 | 7 | public function __construct( |
|
| 39 | } |
||
| 40 | |||
| 41 | 3 | public function getIdentifier(): string { |
|
| 42 | 3 | return $this->identifier; |
|
| 43 | 3 | } |
|
| 44 | 3 | ||
| 45 | public function getEnd(): \DateTime { |
||
| 46 | return $this->end; |
||
| 47 | 2 | } |
|
| 48 | |||
| 49 | public function isInActiveDateRange( \DateTime $time ): bool { |
||
| 52 | } |
||
| 53 | |||
| 54 | public function selectBucket( ?string $bucketId ): Bucket { |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getDisplayPercentage(): int { |
||
| 65 | } |
||
| 66 | } |