src/Factory.php
public static function model(string $sModelName, ?string $sComponentName = ''): Base
    {
        return static::getServiceOrModel(
            static::$aLoadedItems['MODELS'],
            'models',
            $sModelName,
            $sComponentName,
            array_slice(func_get_args(), 2)
        );
    }
public static function model(string $sModelName, ?string $sComponentName = ''): Base
    {
        return static::getServiceOrModel(
            static::$aLoadedItems['MODELS'],
            'models',
            $sModelName,
            $sComponentName,
            array_slice(func_get_args(), 2)
        );
    }
public static function model ( string $ sModelName , ? string $ sComponentName = '' ) : Base { return static :: getServiceOrModel ( static :: $ aLoadedItems [ 'MODELS' ] , 'models' , $ sModelName , $ sComponentName , array_slice ( func_get_args ( ) , 2 ) ) ; }
Return a model from the container.

@param string $sModelName     The model name
@param string $sComponentName The name of the component which provides the model

@return Base
@throws FactoryException
Return a model from the container .