| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | final class VisitedPage implements VisitorEvent |
||
| 6 | { |
||
| 7 | private $visitor; |
||
| 8 | private $page; |
||
| 9 | private $source; |
||
| 10 | private $firstVisit; |
||
| 11 | |||
| 12 | public function __construct( |
||
| 13 | VisitorId $visitor, |
||
| 14 | string $page, |
||
| 15 | string $redirectSource, |
||
| 16 | bool $firstVisit |
||
| 17 | ) { |
||
| 18 | $this->visitor = $visitor; |
||
| 19 | $this->page = $page; |
||
| 20 | $this->source = $redirectSource; |
||
| 21 | $this->firstVisit = $firstVisit; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function aggregateId(): VisitorId |
||
| 27 | } |
||
| 28 | |||
| 29 | public function page(): string |
||
| 30 | { |
||
| 31 | return $this->page; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function source(): string |
||
| 37 | } |
||
| 38 | |||
| 39 | public function isFirstVisit(): bool |
||
| 42 | } |
||
| 43 | } |
||
| 44 |