mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-31 20:12:29 +01:00
Added new models
This commit is contained in:
37
lib/models/StatusState.php
Normal file
37
lib/models/StatusState.php
Normal 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';
|
||||
}
|
||||
Reference in New Issue
Block a user