original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: 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.
docstring_tokens: Parses a value and returns its Locale representation .