We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce7d336 + 7d742bb commit 7eb6ecbCopy full SHA for 7eb6ecb
src/DTO/Officer.php
@@ -45,6 +45,11 @@ class Officer extends DataTransferObject
45
*/
46
public null|Carbon $appointedOn;
47
48
+ /**
49
+ * @var null|Carbon
50
+ */
51
+ public null|Carbon $resignedOn;
52
+
53
/**
54
* @var null|Address
55
@@ -74,6 +79,9 @@ public static function hydrate(array $item): self
74
79
appointedOn: isset($item['appointed_on'])
75
80
? Carbon::parse($item['appointed_on'])
76
81
: null,
82
+ resignedOn: isset($item['resigned_on'])
83
+ ? Carbon::parse($item['resigned_on'])
84
+ : null,
77
85
address: isset($item['address']) ? Address::hydrate(
78
86
item: $item['address'],
87
) : null,
0 commit comments