Skip to content

Commit

Permalink
Merge pull request #4 from morphsites-limited/master
Browse files Browse the repository at this point in the history
Add officer "resigned on" date - thanks to @jeffcaulfield-morphsites
  • Loading branch information
JustSteveKing authored Sep 14, 2021
2 parents ce7d336 + 7d742bb commit 7eb6ecb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DTO/Officer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ class Officer extends DataTransferObject
*/
public null|Carbon $appointedOn;

/**
* @var null|Carbon
*/
public null|Carbon $resignedOn;

/**
* @var null|Address
*/
Expand Down Expand Up @@ -74,6 +79,9 @@ public static function hydrate(array $item): self
appointedOn: isset($item['appointed_on'])
? Carbon::parse($item['appointed_on'])
: null,
resignedOn: isset($item['resigned_on'])
? Carbon::parse($item['resigned_on'])
: null,
address: isset($item['address']) ? Address::hydrate(
item: $item['address'],
) : null,
Expand Down

0 comments on commit 7eb6ecb

Please sign in to comment.