<?php
namespace App\OAuth2\Entity; use League\OAuth2\Server\Entities\ClientEntityInterface; use League\OAuth2\Server\Entities\Traits\ClientTrait; use League\OAuth2\Server\Entities\Traits\EntityTrait; class ClientEntity implements ClientEntityInterface { use EntityTrait; use ClientTrait; private array $allowedScopes = []; public function setName(string $name): void { $this->name = $name; } public function setAllowedScopes(array $scopes): void { $this->allowedScopes = $scopes; } public function getAllowedScopes(): array { return $this->allowedScopes; } public function setRedirectUri(string|array $uri): void { $this->redirectUri = $uri; } public function setConfidential(bool $isConfidential): void { $this->isConfidential = $isConfidential; } }