| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class FixedTimeService implements TimeService |
||
| 11 | { |
||
| 12 | public function __construct( |
||
| 13 | private readonly DateTimeImmutable $dateTime, |
||
| 14 | ) { |
||
| 15 | } |
||
| 16 | |||
| 17 | public static function fromStamp(int $seconds): self |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function fromString(string $dateTime, string $format): self |
||
| 30 | } |
||
| 31 | |||
| 32 | public function measure(): DateTimeImmutable |
||
| 37 |