chore: Аннотации к типам
This commit is contained in:
parent
2aac407c4d
commit
0267d3081f
3 changed files with 9 additions and 8 deletions
|
|
@ -232,13 +232,14 @@ class Component
|
|||
}
|
||||
|
||||
/**
|
||||
* FIXME: Передавать в модель имя класса, а не часть
|
||||
* Создает модель
|
||||
* @param string $name
|
||||
* @param class-string $modelName
|
||||
* @return mixed
|
||||
*/
|
||||
public function getModel($name)
|
||||
public function getModel($modelName)
|
||||
{
|
||||
$modelName = "App\\Mapper\\" . $name;
|
||||
// $modelName = "App\\Mapper\\" . $name;
|
||||
$model = new $modelName();
|
||||
$model->config = $this->config;
|
||||
$model->db = $this->db;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue