PHP Class App\Source\Factory\ModelsFactory

Mostra file Open project: andrey900/slimcms Class Usage Examples

Protected Properties

Property Type Description
$namespaceModel

Public Methods

Method Description
__construct ( )
getModel ( $modelName, $data = [] )
getModelWithRequest ( Psr\Http\Message\ServerRequestInterface $req, $data = [] )

Protected Methods

Method Description
getClassName ( $routeName )

Method Details

__construct() public method

public __construct ( )

getClassName() protected static method

protected static getClassName ( $routeName )

getModel() public static method

public static getModel ( $modelName, $data = [] )

getModelWithRequest() public static method

public static getModelWithRequest ( Psr\Http\Message\ServerRequestInterface $req, $data = [] )
$req Psr\Http\Message\ServerRequestInterface

Property Details

$namespaceModel protected_oe static_oe property

protected static $namespaceModel