| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | trait TimezoneValidationTrait |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Validates that the given node represents a valid PHP timezone. |
||
| 22 | * |
||
| 23 | * @throws InvalidTimezoneException If the timezone is invalid |
||
| 24 | */ |
||
| 25 | protected function validateTimezone(Node $node, string $functionName): void |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | private function isValidTimezone(string $timezone): bool |
||
| 49 |