Move getAttrs() method

This commit is contained in:
Visman 2023-05-31 18:24:49 +07:00
parent 4b4d96a260
commit d564cc5de8
2 changed files with 9 additions and 8 deletions

View file

@ -54,14 +54,6 @@ class DataModel extends Model
return $this;
}
/**
* Возвращает значения свойств в массиве
*/
public function getAttrs(): array
{
return $this->zAttrs; //????
}
/**
* Возвращает массив имен измененных свойств модели
*/

View file

@ -147,6 +147,15 @@ class Model
return \array_key_exists($name, $this->zAttrs) ? $this->zAttrs[$name] : $default;
}
/**
* Возвращает значения свойств в массиве
* Без вычислений
*/
public function getAttrs(): array
{
return $this->zAttrs;
}
/**
* Выполняет подгружаемый метод при его наличии
*/