Flake\Core\Model::set PHP Метод

set() публичный Метод

public set ( $sPropName, $sPropValue )
    function set($sPropName, $sPropValue)
    {
        if (array_key_exists($sPropName, $this->aData)) {
            $this->aData[$sPropName] = $sPropValue;
            return $this;
        }
        throw new \Exception("\\Flake\\Core\\Model->set(): property " . htmlspecialchars($sPropName) . " does not exist on " . get_class($this));
    }