<?php

namespace Hubleto\App\Community\OAuth\Entities;

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;

  public function setName(string $name): void
  {
    $this->name = $name;
  }

  public function setRedirectUri(string $uri): void
  {
    $this->redirectUri = $uri;
  }

  public function setConfidential(): void
  {
    $this->isConfidential = true;
  }
}
