public setModelSource ( ManaPHP\Mvc\ModelInterface | string $model, string $source ) : static | ||
$model | ManaPHP\Mvc\ModelInterface | string | |
$source | string | |
Результат | static |
public function setModelSource($model, $source)
{
$modelName = is_string($model) ? $model : get_class($model);
$this->_sources[$modelName] = $source;
return $this;
}