Mongolid\Model\Attributes::setAttribute PHP Метод

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

Set a given attribute on the model.
public setAttribute ( string $key, mixed $value ) : void
$key string Name of the attribute to be set.
$value mixed Value to be set.
Результат void
    public function setAttribute(string $key, $value)
    {
        $this->attributes[$key] = $value;
    }