Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Mongolid
Model
Attributes
setAttribute
Mongolid\Model\Attributes::setAttribute PHP Метод
Документация по трейту Attributes
Показать файл
Открыть проект
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; }
Attributes
__get
__isset
__set
__unset
buildMutatorMethod
cleanAttribute
fill
getAttribute
getAttributes
hasMutatorMethod
setAttribute
syncOriginalAttributes
toArray