Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Time; | |
| 6 | ||
| 7 | use DateTimeZone; | |
| 8 | use Stewart\Contracts\Exception\ScheduleException; | |
| 9 | use Stewart\Contracts\Schedule\TimeOfDay; | |
| 10 | ||
| 11 | interface Clock | |
| 12 | { | |
| 13 | public function getNow(): Instant; | |
| 14 | ||
| 15 | public function getMonotonicTime(): MonotonicTime; | |
| 16 | ||
| 17 | public function getTimeZone(): DateTimeZone; | |
| 18 | ||
| 19 | /** @throws ScheduleException */ | |
| 20 | public function isWithin(TimeOfDay|string $start, TimeOfDay|string $end): bool; | |
| 21 | } |