userName; } /** getPassword * @return null|string */ public function getPassword(): ?string { return $this->password; } /** getRoles * @return array */ public function getRoles(): array { return $this->roles; } /** getPrivileges * @return array */ public function getPrivileges(): array { return $this->privileges; } /** isEnabled * @return bool */ public function isEnabled(): bool { return $this->enabled; } /** SETs * ------------------------------------------------------------------------- */ /** setUserName() * * @param string $userName * @return User */ public function setUserName(string $userName): self { $this->userName = $userName; return $this; } /** setPassword() * * @param string $password * @return User */ public function setPassword(string $password): self { $this->password = $password; return $this; } /** setRoles() * * @param array $roles * @return User */ public function setRoles(array $roles): self { $this->roles = $roles; return $this; } /** setPrivileges() * * @param array $roles * @return User */ public function setPrivileges(array $privileges): self { $this->privileges = $privileges; return $this; } /** setEnabled * * @param bool $enabled * @return User */ public function setEnabled(bool $enabled): self { $this->enabled = $enabled; return $this; } }