Skip to content

Commit

Permalink
feat: add changedById to Contact
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed May 31, 2024
1 parent 534d2b8 commit 2007e0b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
## Unreleased
- Nothing.

### Added
- Add changedById to Contact.

## [1.4.1] - 2024-04-05

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion src/Models/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public function __construct(
public string $function,
public string $publicPhone,
public bool $active,
public int $createdById
public int $createdById,
public int $changedById
) {
}
}
3 changes: 2 additions & 1 deletion src/Parsers/ContactParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function parse(\stdClass $object): Contact
$object->function,
$object->publicPhone,
$object->active,
$object->createdById
$object->createdById,
$object->changedById
);
}
}
4 changes: 4 additions & 0 deletions tests/_files/situations-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,14 @@
},
"createdById": {
"type": "integer"
},
"changedById": {
"type": "integer"
}
},
"required": [
"active",
"changedById",
"contactId",
"createdById",
"email",
Expand Down

0 comments on commit 2007e0b

Please sign in to comment.