mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-11-01 20:42:29 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5deac6cf55 | |||
| 714d079287 |
@ -25,7 +25,7 @@
|
|||||||
"php": ">=7.2.0",
|
"php": ">=7.2.0",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"cedx/enum": "^7.4.0",
|
"myclabs/php-enum": "^1.8",
|
||||||
"guzzlehttp/guzzle": "~6.0"
|
"guzzlehttp/guzzle": "~6.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|||||||
@ -203,7 +203,7 @@ class Owner extends AbstractApiModel {
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getIsAdmin(): boolean {
|
public function getIsAdmin(): bool {
|
||||||
return $this->isAdmin;
|
return $this->isAdmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Gitea\Model;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use Enum\{EnumTrait};
|
use MyCLabs\Enum\Enum;
|
||||||
|
|
||||||
/** Defines the state of a Gitea status. */
|
/** Defines the state of a Gitea status. */
|
||||||
final class StatusState {
|
final class StatusState extends Enum {
|
||||||
use EnumTrait;
|
|
||||||
|
|
||||||
/** @var string The status is an error. */
|
/** @var string The status is an error. */
|
||||||
const error = 'error';
|
const error = 'error';
|
||||||
|
|||||||
@ -1,11 +1,10 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
namespace Gitea\Model;
|
namespace Gitea\Model;
|
||||||
|
|
||||||
use Enum\{EnumTrait};
|
use MyCLabs\Enum\Enum;
|
||||||
|
|
||||||
/** Defines the permission of a team. */
|
/** Defines the permission of a team. */
|
||||||
final class TeamPermission {
|
final class TeamPermission extends Enum {
|
||||||
use EnumTrait;
|
|
||||||
|
|
||||||
/** @var string The team has the administrator permission. */
|
/** @var string The team has the administrator permission. */
|
||||||
const admin = 'admin';
|
const admin = 'admin';
|
||||||
|
|||||||
Reference in New Issue
Block a user