You've already forked php-auth
generated from siteworxpro/Php-Template
28 lines
531 B
PHP
28 lines
531 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Siteworxpro\App\OAuth\Entities;
|
|
|
|
use League\OAuth2\Server\Entities\ScopeEntityInterface;
|
|
use League\OAuth2\Server\Entities\Traits\ScopeTrait;
|
|
use Siteworxpro\App\Models\Model;
|
|
|
|
/**
|
|
* Class Scope
|
|
* @package Siteworxpro\App\Models
|
|
*
|
|
* @property string $id
|
|
* @property string $name
|
|
* @property string $description
|
|
*/
|
|
class Scope extends Model implements ScopeEntityInterface
|
|
{
|
|
use ScopeTrait;
|
|
|
|
public function getIdentifier(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|