ManaPHP\Mvc\Model\Manager::setModelSource PHP 메소드

setModelSource() 공개 메소드

Sets the mapped source for a model
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;
    }