You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addition of JsonSerializable in Entity, and toArray/toJson in according classes to improve serialized structure (when working with inertiajs, own api, or general better handling outside of php.
Add more property-classes (Number and Title).
Some small property-refactoring.
// throw HandlingException::instance("The property-type is number, however the raw data-structure does not represent this type (= array of items). Please check the raw response-data.");
Copy file name to clipboardExpand all lines: src/Entities/Properties/Text.php
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,21 @@
13
13
14
14
class Text extends Property
15
15
{
16
+
protectedstring$plainText = "";
17
+
16
18
protectedfunctionfillFromRaw(): void
17
19
{
18
20
parent::fillFromRaw();
19
21
if (!is_array($this->rawContent))
20
22
throw HandlingException::instance("The property-type is text, however the raw data-structure does not represent this type (= array of items). Please check the raw response-data.");
throw HandlingException::instance("The property-type is title, however the raw data-structure does not represent this type (= array of items). Please check the raw response-data.");
0 commit comments