protected function getClassToExport($uri)
    {
        $resource = $this->getResource($uri);

        if ($resource->isClass()) {
            $classToExport = $this->getClass($uri);
        } else {
            $classToExport = reset($resource->getTypes());
        }

        return $classToExport;
    }
protected function getClassToExport($uri)
    {
        $resource = $this->getResource($uri);

        if ($resource->isClass()) {
            $classToExport = $this->getClass($uri);
        } else {
            $classToExport = reset($resource->getTypes());
        }

        return $classToExport;
    }
protected function getClassToExport ( $ uri ) { $ resource = $ this -> getResource ( $ uri ) ; if ( $ resource -> isClass ( ) ) { $ classToExport = $ this -> getClass ( $ uri ) ; } else { $ classToExport = reset ( $ resource -> getTypes ( ) ) ; } return $ classToExport ; }
Get class to export, from resource uri or class uri
If parameter is null, check id http parameter

@param null $uri
@return \core_kernel_classes_Class|mixed
@throws \common_exception_BadRequest
Get class to export from resource uri or class uri If parameter is null check id http parameter