| Current Path : /var/www/v3.cesa.co.za/vendor/league/oauth2-server-bundle/src/Event/ |
| Current File : /var/www/v3.cesa.co.za/vendor/league/oauth2-server-bundle/src/Event/UserResolveEvent.php |
<?php
declare(strict_types=1);
namespace League\Bundle\OAuth2ServerBundle\Event;
use League\Bundle\OAuth2ServerBundle\Model\AbstractClient;
use League\Bundle\OAuth2ServerBundle\ValueObject\Grant;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Contracts\EventDispatcher\Event;
final class UserResolveEvent extends Event
{
/**
* @var string
*/
private $username;
/**
* @var string
*/
private $password;
/**
* @var Grant
*/
private $grant;
/**
* @var AbstractClient
*/
private $client;
/**
* @var UserInterface|null
*/
private $user;
public function __construct(string $username, string $password, Grant $grant, AbstractClient $client)
{
$this->username = $username;
$this->password = $password;
$this->grant = $grant;
$this->client = $client;
}
public function getUsername(): string
{
return $this->username;
}
public function getPassword(): string
{
return $this->password;
}
public function getGrant(): Grant
{
return $this->grant;
}
public function getClient(): AbstractClient
{
return $this->client;
}
public function getUser(): ?UserInterface
{
return $this->user;
}
public function setUser(?UserInterface $user): self
{
$this->user = $user;
return $this;
}
}