Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| DayoffDeleteByCron | n/a | 0 / 0 | n/a | 0 / 0 | 1 | n/a | 0 / 0 | |||
| init | n/a | 0 / 0 | n/a | 0 / 0 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | namespace BO\Zmsbackend\Helper; | |
| 4 | ||
| 5 | /** | |
| 6 | * @codeCoverageIgnore | |
| 7 | */ | |
| 8 | class DayoffDeleteByCron | |
| 9 | { | |
| 10 | public static function init(int $timeInterval): void | |
| 11 | { | |
| 12 | $deleteInSeconds = (365 * 24 * 60 * 60 / 12) * $timeInterval; | |
| 13 | $query = new \BO\Zmsbackend\Dayoff\Service\DayOff(); | |
| 14 | $query->deleteByTimeInterval($deleteInSeconds); | |
| 15 | } | |
| 16 | } |