2016-11-27 03:13:42 +05:30
|
|
|
<?php
|
2019-08-23 13:58:04 +05:30
|
|
|
declare(strict_types=1);
|
|
|
|
|
2024-12-06 06:04:09 +05:30
|
|
|
namespace common\components\OAuth2\Entities;
|
2016-11-27 03:13:42 +05:30
|
|
|
|
2019-08-23 13:58:04 +05:30
|
|
|
use League\OAuth2\Server\Entities\ScopeEntityInterface;
|
|
|
|
use League\OAuth2\Server\Entities\Traits\EntityTrait;
|
|
|
|
use League\OAuth2\Server\Entities\Traits\ScopeTrait;
|
|
|
|
|
2024-12-06 06:04:09 +05:30
|
|
|
final class ScopeEntity implements ScopeEntityInterface {
|
2019-08-23 13:58:04 +05:30
|
|
|
use EntityTrait;
|
|
|
|
use ScopeTrait;
|
2016-11-27 03:13:42 +05:30
|
|
|
|
2024-12-06 06:04:09 +05:30
|
|
|
/**
|
|
|
|
* @phpstan-param non-empty-string $id
|
|
|
|
*/
|
2019-08-23 13:58:04 +05:30
|
|
|
public function __construct(string $id) {
|
|
|
|
$this->identifier = $id;
|
2016-11-27 03:13:42 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
}
|