| Total Complexity | 10 | 
| Total Lines | 40 | 
| 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 \InvalidArgumentException Thrown if $allowNull was not a boolean value.  | 
            ||
| 21 | * @throws FilterException if the value did not pass validation.  | 
            ||
| 22 | */  | 
            ||
| 23 | public static function filter($value, bool $allowNull = false)  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 | private static function valueIsNullAndValid(bool $allowNull, $value = null) : bool  | 
            ||
| 52 |