Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class DatesHelper extends Helper |
||
13 | { |
||
14 | /** |
||
15 | * Get the number of days between the current date and the given date. |
||
16 | * |
||
17 | * @param string $then The date to compare with the current date. |
||
18 | * @return int The number of days between the two dates. |
||
19 | */ |
||
20 | public function daysAgo(string $then): int |
||
28 |