Drest\Manager\Representation::getRepresentationClassName PHP Method

getRepresentationClassName() protected method

Removes any root NS chars Falls back to a DrestCommon Representation lookup
protected getRepresentationClassName ( string $representation ) : string
$representation string
return string
    protected function getRepresentationClassName($representation)
    {
        $className = strstr($representation, '\\') !== false ? '\\' . ltrim($representation, '\\') : $representation;
        $className = !class_exists($className) ? '\\DrestCommon\\Representation\\' . ltrim($className, '\\') : $className;
        if (!class_exists($className)) {
            throw RepresentationException::unknownRepresentationClass($representation);
        }
        return $className;
    }