Commit 9e28088
authored
Add serialization support to SimpleDTO (#873)
Implemented __serialize and __unserialize methods in SimpleDTO to enable native PHP serialization. Added a unit test to verify that SimpleDTO instances can be serialized and unserialized correctly, including when instantiated from an Eloquent Model.
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>1 parent 90652e0 commit 9e28088
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
| |||
0 commit comments