Added new models

This commit is contained in:
Cédric Belin
2018-11-02 00:04:16 +01:00
parent 61625a700e
commit a5f84778cd
5 changed files with 503 additions and 0 deletions

View File

@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace Gitea\Models;
use Enum\{EnumTrait};
/**
* Defines the state of a Gitea status.
*/
final class StatusState {
use EnumTrait;
/**
* @var string The status is an error.
*/
const ERROR = 'error';
/**
* @var string The status is a failure.
*/
const FAILURE = 'failure';
/**
* @var string The status is a pending.
*/
const PENDING = 'pending';
/**
* @var string The status is a success.
*/
const SUCCESS = 'success';
/**
* @var string The status is a warning.
*/
const WARNING = 'warning';
}