| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 64 | public static function createFromDateString($duration): self |
||
| 65 | { |
||
| 66 | $duration = parent::createFromDateString($duration); |
||
| 67 | |||
| 68 | $new = new self('PT0S'); |
||
| 69 | $new->y = $duration->y; |
||
| 70 | $new->m = $duration->m; |
||
| 71 | $new->d = $duration->d; |
||
| 72 | $new->h = $duration->h; |
||
| 73 | $new->i = $duration->i; |
||
| 74 | $new->s = $duration->s; |
||
| 75 | $new->f = $duration->f; |
||
| 76 | |||
| 77 | return $new; |
||
| 78 | } |
||
| 80 |