public static function parse($value)
    {
        if (is_array($value)) {
            return static::fromArray((array)$value);
        } elseif (is_string($value)) {
            return static::fromString((string)$value);
        } else {
            return null;
        }
    }
public static function parse($value)
    {
        if (is_array($value)) {
            return static::fromArray((array)$value);
        } elseif (is_string($value)) {
            return static::fromString((string)$value);
        } else {
            return null;
        }
    }
public static function parse ( $ value ) { if ( is_array ( $ value ) ) { return static :: fromArray ( ( array ) $ value ) ; } elseif ( is_string ( $ value ) ) { return static :: fromString ( ( string ) $ value ) ; } else { return null ; } }
Parses a value and returns its Locale representation.

@param $value The value to parse
@return null|Locale The Locale representation of the given value or a null value.
Parses a value and returns its Locale representation .