26 lines
507 B
PHP
26 lines
507 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace KTXF\People\Collection;
|
|
|
|
use JsonSerializable;
|
|
|
|
enum CollectionPermissions: string implements JsonSerializable {
|
|
|
|
case View = 'view';
|
|
case Create = 'create';
|
|
case Modify = 'modify';
|
|
case Destroy = 'destroy';
|
|
case Share = 'share';
|
|
|
|
public function jsonSerialize(): string {
|
|
return $this->value;
|
|
}
|
|
|
|
} |