Skip to content

Commit 7eb6ecb

Browse files
Merge pull request #4 from morphsites-limited/master
Add officer "resigned on" date - thanks to @jeffcaulfield-morphsites
2 parents ce7d336 + 7d742bb commit 7eb6ecb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/DTO/Officer.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ class Officer extends DataTransferObject
4545
*/
4646
public null|Carbon $appointedOn;
4747

48+
/**
49+
* @var null|Carbon
50+
*/
51+
public null|Carbon $resignedOn;
52+
4853
/**
4954
* @var null|Address
5055
*/
@@ -74,6 +79,9 @@ public static function hydrate(array $item): self
7479
appointedOn: isset($item['appointed_on'])
7580
? Carbon::parse($item['appointed_on'])
7681
: null,
82+
resignedOn: isset($item['resigned_on'])
83+
? Carbon::parse($item['resigned_on'])
84+
: null,
7785
address: isset($item['address']) ? Address::hydrate(
7886
item: $item['address'],
7987
) : null,

0 commit comments

Comments
 (0)