__construct() public method

Constructor.
public __construct ( string | object $user, mixed $credentials, string $providerKey, array $roles = [] )
$user string | object The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string
$credentials mixed The user credentials
$providerKey string The provider key
$roles array
 public function __construct(UserInterface $consoleUser, $providerKey = 'fos_userbundle')
 {
     parent::__construct($consoleUser, '', $providerKey, $consoleUser->getRoles());
 }
 /**
  * @param array|RoleInterface[] $token
  * @param string                $providerKey
  * @param array                 $roles
  */
 public function __construct($token, $providerKey, array $roles = [])
 {
     parent::__construct($token, $token, $providerKey, $roles);
     $this->token = $token;
 }
 /**
  * @param array|\Symfony\Component\Security\Core\Role\RoleInterface[] $user
  * @param $credentials
  * @param $providerKey
  * @param array $roles
  */
 public function __construct($user, $credentials, $providerKey, array $roles = array())
 {
     parent::__construct($user, $credentials, $providerKey, $roles);
 }