| Conditions | 5 |
| Paths | 5 |
| Total Lines | 24 |
| Code Lines | 16 |
| Lines | 24 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 79 | $this->interval = new \DateInterval($interval); |
||
| 80 | $this->format = $format; |
||
| 81 | $this->field = $field; |
||
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return \DateInterval |
||
| 86 | */ |
||
| 87 | public function getInterval(): \DateInterval |
||
| 88 | { |
||
| 89 | return $this->interval; |
||
| 90 | } |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @return string |
||
| 94 | */ |
||
| 95 | public function getFormat(): string |
||
| 96 | { |
||
| 97 | return $this->format; |
||
| 98 | } |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @return string |
||
| 102 | */ |
||
| 103 | public function getField(): string |
||
| 115 | } |