src/Route.php
public function get($route = null)
    {
        //argument 1 must be a string or null
        Argument::i()->test(1, 'string', 'null');
        
        //if route is null
        if (is_null($route)) {
            //return all routes
            return $this->route;
        }
        
        //if valid route
        if ($this->valid($route)) {
            //return route
            return $this->route[strtolower($route)];
        }
        
        //at this point it is not a route
        //return the same thing
        return $route;
    }
public function get($route = null)
    {
        //argument 1 must be a string or null
        Argument::i()->test(1, 'string', 'null');
        
        //if route is null
        if (is_null($route)) {
            //return all routes
            return $this->route;
        }
        
        //if valid route
        if ($this->valid($route)) {
            //return route
            return $this->route[strtolower($route)];
        }
        
        //at this point it is not a route
        //return the same thing
        return $route;
    }
public function get ( $ route = null ) { //argument 1 must be a string or null Argument :: i ( ) -> test ( 1 , 'string' , 'null' ) ; //if route is null if ( is_null ( $ route ) ) { //return all routes return $ this -> route ; } //if valid route if ( $ this -> valid ( $ route ) ) { //return route return $ this -> route [ strtolower ( $ route ) ] ; } //at this point it is not a route //return the same thing return $ route ; }
Returns the class that will be routed to given the route.

@param string|null $route the class route name

@return string|object|array
Returns the class that will be routed to given the route .