src/Perry/Tool.php
public static function parseRepresentationToClass($inputRepresentation)
    {
        $version = substr($inputRepresentation, -2);
        $representation = substr($inputRepresentation, 0, -3);

        switch (substr($representation, 0, 7)) {
            case "vnd.ccp": // EVE
                $data = explode(".", $representation);
                array_shift($data);
                array_shift($data);
                array_shift($data);
                $classname = '\Perry\Representation\Eve\\'.$version.'\\'.$data[0];
                break;
            case "net.3rd": // OldApi
                $data = explode(".", $representation);
                array_shift($data);
                array_shift($data);
                array_shift($data);

                $classname = '\Perry\Representation\OldApi\\'.$version.'\\'.$data[0];
                if (count($data) > 1) {
                    $classname .= '\\'.$data[1];
                }
                break;
            default:
                throw new \Exception("wtf, what representation is this? ".$inputRepresentation);
        }

        return $classname;
    }
public static function parseRepresentationToClass($inputRepresentation)
    {
        $version = substr($inputRepresentation, -2);
        $representation = substr($inputRepresentation, 0, -3);

        switch (substr($representation, 0, 7)) {
            case "vnd.ccp": // EVE
                $data = explode(".", $representation);
                array_shift($data);
                array_shift($data);
                array_shift($data);
                $classname = '\Perry\Representation\Eve\\'.$version.'\\'.$data[0];
                break;
            case "net.3rd": // OldApi
                $data = explode(".", $representation);
                array_shift($data);
                array_shift($data);
                array_shift($data);

                $classname = '\Perry\Representation\OldApi\\'.$version.'\\'.$data[0];
                if (count($data) > 1) {
                    $classname .= '\\'.$data[1];
                }
                break;
            default:
                throw new \Exception("wtf, what representation is this? ".$inputRepresentation);
        }

        return $classname;
    }
convert a representation name including version to the
corresponding class

@param  string $inputRepresentation
@return string
@throws \Exception