Total Complexity | 10 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class DateTimeZone |
||
11 | { |
||
12 | /** |
||
13 | * Filters the given value into a \DateTimeZone object. |
||
14 | * |
||
15 | * @param mixed $value The value to be filtered. |
||
16 | * @param boolean $allowNull True to allow nulls through, and false (default) if nulls should not be allowed. |
||
17 | * |
||
18 | * @return \DateTimeZone|null |
||
19 | * |
||
20 | * @throws FilterException if the value did not pass validation. |
||
21 | */ |
||
22 | public static function filter($value, bool $allowNull = false) |
||
40 | } |
||
41 | } |
||
42 | |||
43 | private static function valueIsNullAndValid(bool $allowNull, $value = null) : bool |
||
51 |