Added the permission models

This commit is contained in:
Cédric Belin
2018-11-01 23:37:40 +01:00
parent 55b0fa7951
commit 187dd91bcd
2 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace yii\gitea\models;
use Enum\{EnumTrait};
/**
* Defines the permission of a Gitea status.
*/
final class TeamPermission {
use EnumTrait;
/**
* @var string The team has the administrator permission.
*/
const ADMIN = 'admin';
/**
* @var string The team doesn't have any permission.
*/
const NONE = 'none';
/**
* @var string The team has the owner permission.
*/
const OWNER = 'owner';
/**
* @var string The team has the read permission.
*/
const READ = 'read';
/**
* @var string The team has the write permission.
*/
const WRITE = 'write';
}