Move getAttrs() method
This commit is contained in:
parent
4b4d96a260
commit
d564cc5de8
2 changed files with 9 additions and 8 deletions
|
@ -54,14 +54,6 @@ class DataModel extends Model
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Возвращает значения свойств в массиве
|
||||
*/
|
||||
public function getAttrs(): array
|
||||
{
|
||||
return $this->zAttrs; //????
|
||||
}
|
||||
|
||||
/**
|
||||
* Возвращает массив имен измененных свойств модели
|
||||
*/
|
||||
|
|
|
@ -147,6 +147,15 @@ class Model
|
|||
return \array_key_exists($name, $this->zAttrs) ? $this->zAttrs[$name] : $default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Возвращает значения свойств в массиве
|
||||
* Без вычислений
|
||||
*/
|
||||
public function getAttrs(): array
|
||||
{
|
||||
return $this->zAttrs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Выполняет подгружаемый метод при его наличии
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue