for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Acme\App\Infrastructure\Auth\Authentication\Oauth;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\Traits\ClientTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
final class OauthClient implements ClientEntityInterface
{
use ClientTrait;
use EntityTrait;
public function __construct(string $identifier, string $name, string $redirectUri)
$this->setIdentifier($identifier);
$this->name = $name;
$this->redirectUri = explode(',', $redirectUri);
}