mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-11-22 12:40:28 +01:00
38 lines
No EOL
816 B
PHP
38 lines
No EOL
816 B
PHP
<?php
|
|
|
|
namespace OCA\OrganizationFolders\Model;
|
|
|
|
class OrganizationRole implements \JsonSerializable {
|
|
public function __construct(
|
|
private int $id,
|
|
private int $organizationId,
|
|
private string $friendlyName,
|
|
private string $membersGroup,
|
|
) {
|
|
}
|
|
|
|
public function getId(): int {
|
|
return $this->id;
|
|
}
|
|
|
|
public function getOrganizationId(): int {
|
|
return $this->organizationId;
|
|
}
|
|
|
|
public function getFriendlyName(): string {
|
|
return $this->friendlyName;
|
|
}
|
|
|
|
public function getMembersGroup(): string {
|
|
return $this->membersGroup;
|
|
}
|
|
|
|
public function jsonSerialize(): array {
|
|
return [
|
|
'id' => $this->id,
|
|
'organizationId' => $this->organizationId,
|
|
'friendlyName' => $this->friendlyName,
|
|
'membersGroup' => $this->membersGroup,
|
|
];
|
|
}
|
|
} |