0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-21 20:28:11 +01:00

add jsonSerialize to Organization and OrganizationRole

This commit is contained in:
Jonathan Treffler 2024-10-13 22:55:24 +02:00
parent 936f52c61f
commit 38b1406d40
2 changed files with 16 additions and 0 deletions

View file

@ -16,4 +16,11 @@ class Organization implements \JsonSerializable {
public function getMembersGroup(): string {
return $this->membersGroup;
}
public function jsonSerialize(): array {
return [
'id' => $this->id,
'membersGroup' => $this->membersGroup,
];
}
}

View file

@ -26,4 +26,13 @@ class OrganizationRole implements \JsonSerializable {
public function getMembersGroup(): string {
return $this->membersGroup;
}
public function jsonSerialize(): array {
return [
'id' => $this->id,
'organizationId' => $this->organizationId,
'friendlyName' => $this->friendlyName,
'membersGroup' => $this->membersGroup,
];
}
}