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