| Total Complexity | 7 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class TimeInterval |
||
| 17 | { |
||
| 18 | private $interval; |
||
| 19 | |||
| 20 | public function __construct(string $interval) |
||
| 21 | { |
||
| 22 | $this->interval = new DateTimeInterval($interval); |
||
| 23 | $this->interval->d = 0; |
||
| 24 | $this->interval->m = 0; |
||
| 25 | $this->interval->y = 0; |
||
| 26 | $this->interval->days = 0; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getDateTimeInterval() : DateTimeInterval |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function fromDateTimeInterval(DateTimeInterval $interval) : TimeInterval |
||
| 49 | } |
||
| 50 | |||
| 51 | public function format(string $format) : string |
||
| 58 |