| 1 | <?php |
||
| 10 | final class OauthScope implements ScopeEntityInterface |
||
| 11 | { |
||
| 12 | use EntityTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | public static $scopes = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Scope constructor. |
||
| 21 | * |
||
| 22 | * @param $name |
||
| 23 | */ |
||
| 24 | public function __construct($name) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param $id |
||
| 31 | * |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public static function hasScope($id): bool |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the data that should be serialized to JSON. |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function jsonSerialize() |
||
| 48 | } |
||
| 49 |