original_string: public static function fromHex($hex)
    {
      if(strlen($hex) != 2)
      {
        throw new Exception("given parameter '" . $hex . "' is not a valid hexadecimal number");
      }
  
      return new self(chr(hexdec($hex)));
    }
code: public static function fromHex($hex)
    {
      if(strlen($hex) != 2)
      {
        throw new Exception("given parameter '" . $hex . "' is not a valid hexadecimal number");
      }
  
      return new self(chr(hexdec($hex)));
    }
code_tokens: public static function fromHex ( $ hex ) { if ( strlen ( $ hex ) != 2 ) { throw new Exception ( "given parameter '" . $ hex . "' is not a valid hexadecimal number" ) ; } return new self ( chr ( hexdec ( $ hex ) ) ) ; }
docstring: Returns the Char based on a given hex value.
  
  @param  string $hex
  @throws Exception
  @return Char
docstring_tokens: Returns the Char based on a given hex value .