Skip to content

Commit 92c4eeb

Browse files
committed
feat: add function to get models attributes
1 parent 21316dd commit 92c4eeb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Model/Model.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,5 +259,13 @@ public function __call($attribute, $method)
259259
return $this->attributes[$attribute];
260260
}
261261

262+
/**
263+
* Getter
264+
* @return array
265+
*/
266+
public function getAttributes() {
267+
return $this->attributes;
268+
}
269+
262270

263271
}

0 commit comments

Comments
 (0)