src/Base.php
protected static function getMultiple($class = null)
    {
        //super magic sauce getting the callers class
        if (is_null($class) && function_exists('get_called_class')) {
            $class = get_called_class();
        }
        
        //get routed class, if any
        $class = Route::i()->get($class);
        return self::getInstance($class);
    }
protected static function getMultiple($class = null)
    {
        //super magic sauce getting the callers class
        if (is_null($class) && function_exists('get_called_class')) {
            $class = get_called_class();
        }
        
        //get routed class, if any
        $class = Route::i()->get($class);
        return self::getInstance($class);
    }
protected static function getMultiple ( $ class = null ) { //super magic sauce getting the callers class if ( is_null ( $ class ) && function_exists ( 'get_called_class' ) ) { $ class = get_called_class ( ) ; } //get routed class, if any $ class = Route :: i ( ) -> get ( $ class ) ; return self :: getInstance ( $ class ) ; }
Returns a non-singleton class, while considering routes

@param string|null $class name of the class

@return object
Returns a non - singleton class while considering routes