Resources\Uri::getClass PHP Method

getClass() public method

Get class name from the url.
public getClass ( ) : string
return string
    public function getClass()
    {
        if ($uriString = $this->path(0)) {
            if ($this->stripUriString($uriString)) {
                return $uriString;
            }
            throw new RunException('Invalid controller name: ' . htmlentities($uriString));
        }
        return $this->defaultController;
    }