ManaPHP\Mvc\Model\Manager::setModelSource PHP Method

setModelSource() public method

Sets the mapped source for a model
public setModelSource ( ManaPHP\Mvc\ModelInterface | string $model, string $source ) : static
$model ManaPHP\Mvc\ModelInterface | string
$source string
return static
    public function setModelSource($model, $source)
    {
        $modelName = is_string($model) ? $model : get_class($model);
        $this->_sources[$modelName] = $source;
        return $this;
    }