| Total Complexity | 7 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class BucketLog { |
||
| 13 | |||
| 14 | private int $id; |
||
| 15 | private int $externalId; |
||
| 16 | private string $eventName; |
||
| 17 | private Collection $buckets; |
||
| 18 | private DateTimeInterface $date; |
||
| 19 | |||
| 20 | public function __construct( int $externalId, string $eventName ) { |
||
| 21 | $this->externalId = $externalId; |
||
| 22 | $this->eventName = $eventName; |
||
| 23 | $this->buckets = new ArrayCollection(); |
||
| 24 | $this->date = new DateTime(); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getId(): int { |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getExternalId(): int { |
||
| 32 | return $this->externalId; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getDate(): DateTimeInterface { |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getEventName(): ?string { |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * This is only used in tests |
||
| 45 | * |
||
| 46 | * @return Collection |
||
| 47 | */ |
||
| 48 | public function getBuckets(): Collection { |
||
| 49 | return $this->buckets; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function addBucket( BucketLogBucket $bucket ) { |
||
| 54 | } |
||
| 55 | } |
||
| 56 |