| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | $interval = $this->startDateTime->diff($this->endDateTime); |
||
| 28 | |||
| 29 | if (! $this->startDateTime->diffInHours($this->endDateTime)) { |
||
| 30 | return $interval->format('%im'); |
||
| 31 | } |
||
| 32 | |||
| 33 | if (! $this->startDateTime->diffInDays($this->endDateTime)) { |
||
| 34 | return $interval->format('%hh %im'); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $interval->format('%dd %hh %im'); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function toText(): string |
||
| 41 | { |
||
| 52 |