mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-11-22 12:40:28 +01:00
35 lines
No EOL
694 B
PHP
35 lines
No EOL
694 B
PHP
<?php
|
|
|
|
namespace OCA\OrganizationFolders\Model;
|
|
|
|
use OCA\OrganizationFolders\Interface\TableSerializable;
|
|
|
|
class Organization implements \JsonSerializable, TableSerializable {
|
|
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,
|
|
];
|
|
}
|
|
|
|
public function tableSerialize(?array $params = null): array {
|
|
return [
|
|
'Id' => $this->id,
|
|
'Members Group' => $this->membersGroup,
|
|
];
|
|
}
|
|
} |