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