| Total Complexity | 3 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | final class PageView implements Trackable |
||
| 22 | { |
||
| 23 | use TrackableMethods; |
||
| 24 | |||
| 25 | private string $path; |
||
| 26 | private float $duration; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Creates a PageView |
||
| 30 | * |
||
| 31 | * @param string $message |
||
| 32 | * @param string $path |
||
| 33 | * @param float $duration |
||
| 34 | * @param iterable $context |
||
| 35 | */ |
||
| 36 | public function __construct(string $message, string $path, float $duration = 0, iterable $context = []) |
||
| 46 | ]); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * path |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function path(): string |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * duration |
||
| 61 | * |
||
| 62 | * @return int|null |
||
| 63 | */ |
||
| 64 | public function duration(): float |
||
| 69 |