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
3declare(strict_types=1);
4
5namespace Stewart\Contracts\Time;
6
7use DateTimeZone;
8use Stewart\Contracts\Exception\ScheduleException;
9use Stewart\Contracts\Schedule\TimeOfDay;
10
11interface 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}