/** * {@inheritdoc} * * @param mixed $providerUserId * @param string $provider * @param UserInterface $user * @param array $data */ public function __construct($uuid = null, $providerUserId, $provider, UserInterface $user, $data = []) { parent::__construct($uuid); $this->setProviderUserId($providerUserId); $this->setProvider($provider); $this->setUser($user); $this->setData($data); }
public function __construct($uuid = null, $password = null) { parent::__construct($uuid); if ($password) { $this->setPassword($password); } $this->initThirdPartyCredentials(); }
/** * {@inheritdoc} * * @param string $name * @param bool $default */ public function __construct($uuid = null, $name = null, $default = null) { parent::__construct($uuid); if ($name) { $this->setName($name); } if ($default) { $this->setDefaultScope($default); } }
/** * {@inheritdoc} * * @param string $token * @param Client $client * @param UserInterface $user * @param array|Collection $scopes */ public function __construct($uuid = null, $token, Client $client, UserInterface $user = null, $scopes = null) { parent::__construct($uuid); $this->setToken($token); $this->setClient($client); if ($user) { $this->setUser($user); } if ($scopes) { $this->setScopes($scopes); } else { $this->initScopes(); } }
/** * {@inheritdoc} * * @param string $secret * @param UserInterface $user * @param string[] $grantTypes * @param string $redirectUri * @param string $description */ public function __construct($uuid = null, $secret = null, $user = null, $grantTypes = null, $redirectUri = null, $description = null) { parent::__construct($uuid); if ($secret) { $this->setSecret($secret); } if ($user) { $this->setUser($user); } if ($grantTypes) { $this->setGrantTypes($grantTypes); } if ($redirectUri) { $this->setRedirectUri($redirectUri); } if ($description) { $this->setDescription($description); } $this->initScopes(); }
/** * {@inheritdoc} * * @param DateTime $expirationDate * @param string $namespace */ public function __construct(Uuid $uuid = null, DateTime $expirationDate = null, $namespace = null) { parent::__construct($uuid); $this->setExpirationDate($expirationDate); $this->setNamespace($namespace); }