| 1 | <?php |
||
| 7 | final class Interval |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $interval; |
||
| 11 | |||
| 12 | private function __construct(string $interval) |
||
| 16 | |||
| 17 | public function asString(): string |
||
| 21 | |||
| 22 | public static function year(): self |
||
| 26 | |||
| 27 | public static function month(): self |
||
| 31 | |||
| 32 | public static function week(): self |
||
| 36 | |||
| 37 | public static function day(): self |
||
| 41 | } |
||
| 42 |