| 1 | <?php |
||
| 7 | */ |
||
| 8 | class DateTimeZone |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Filters the given value into a \DateTimeZone object. |
||
| 12 | * |
||
| 13 | * @param mixed $value The value to be filtered. |
||
| 14 | * @param boolean $allowNull True to allow nulls through, and false (default) if nulls should not be allowed. |
||
| 15 | * |
||
| 16 | * @return \DateTimeZone|null |
||
| 17 | * |
||
| 18 | * @throws \InvalidArgumentException Thrown if $allowNull was not a boolean value. |
||
| 19 | * @throws Exception if the value did not pass validation. |
||
| 20 | */ |
||
| 21 | public static function filter($value, bool $allowNull = false) |
||
| 41 | } |
||
| 42 |