| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public static function intvg($args) { |
||
| 43 | $substractStep = function (DateTime $bound) { |
||
| 44 | return (clone $bound)->sub(new DateInterval('PT1S')); |
||
| 45 | }; |
||
| 46 | |||
| 47 | $addStep = function (DateTime $bound) { |
||
| 48 | return (clone $bound)->add(new DateInterval('PT1S')); |
||
| 49 | }; |
||
| 50 | return (new IntervalGraph($args)) |
||
| 51 | ->setAddStep($addStep) |
||
| 52 | ->setSubstractStep($substractStep); |
||
| 53 | } |
||
| 70 | } |