/** * Constructor. * * @param string $name * @param string[] $credentials * @param UserInterface $user */ public function __construct($name, array $credentials, UserInterface $user = null) { parent::__construct($name, $user); $this->credentials = $credentials; }