This commit is contained in:
2023-12-18 15:46:06 +08:00
parent c9255a6c2b
commit 6b96e54ab0
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
*/ */
public function getAttributes(): array public function getAttributes(): array
{ {
return $this->toArray(); return $this->_attributes;
} }
/** /**
+11
View File
@@ -97,6 +97,17 @@ interface ModelInterface
public function setOldAttribute(string $field): mixed; public function setOldAttribute(string $field): mixed;
/**
* @return array
*/
public function getOldAttributes(): array;
/**
* @return array
*/
public function getAttributes(): array;
/** /**
* @return array * @return array
*/ */