Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2namespace Apie\DateValueObjects\Interfaces;
3
4use Apie\Core\ValueObjects\Interfaces\TimeRelatedValueObjectInterface;
5use Apie\DateValueObjects\Concerns\CanHaveTimeIntervals;
6use DateTimeImmutable;
7use DateTimeInterface;
8
9/**
10 * @see CanHaveTimeIntervals
11 */
12interface WorksWithTimeIntervals extends TimeRelatedValueObjectInterface
13{
14    public static function createFromDateTimeObject(DateTimeInterface $dateTime): self;
15    public function toDate(): DateTimeImmutable;
16    public function withTime(
17        ?int $hour = null,
18        ?int $minute = null,
19        ?int $second = null,
20        ?int $micro = null
21    ): self;
22    public function nextHour(): self;
23    public function previousHour(): self;
24    public function nextMinute(): self;
25    public function previousMinute(): self;
26    public function nextSecond(): self;
27    public function previousSecond(): self;
28}