id; } public function getProtocol(): string { return $this->protocol; } public function setProtocol(string $protocol): static { $this->protocol = $protocol; return $this; } public function getImapHost(): ?string { return $this->imapHost; } public function setImapHost(?string $imapHost): static { $this->imapHost = $imapHost; return $this; } public function getImapPort(): int { return $this->imapPort; } public function setImapPort(int $imapPort): static { $this->imapPort = $imapPort; return $this; } public function getImapEncryption(): string { return $this->imapEncryption; } public function setImapEncryption(string $imapEncryption): static { $this->imapEncryption = $imapEncryption; return $this; } public function getSmtpHost(): ?string { return $this->smtpHost; } public function setSmtpHost(?string $smtpHost): static { $this->smtpHost = $smtpHost; return $this; } public function getSmtpPort(): int { return $this->smtpPort; } public function setSmtpPort(int $smtpPort): static { $this->smtpPort = $smtpPort; return $this; } public function getSmtpEncryption(): string { return $this->smtpEncryption; } public function setSmtpEncryption(string $smtpEncryption): static { $this->smtpEncryption = $smtpEncryption; return $this; } public function getUsername(): ?string { return $this->username; } public function setUsername(?string $username): static { $this->username = $username; return $this; } public function getEncryptedPassword(): ?string { return $this->encryptedPassword; } public function setEncryptedPassword(?string $encryptedPassword): static { $this->encryptedPassword = $encryptedPassword; return $this; } public function getSentFolderPath(): string { return $this->sentFolderPath; } public function setSentFolderPath(string $sentFolderPath): static { $this->sentFolderPath = $sentFolderPath; return $this; } public function isEnabled(): bool { return $this->enabled; } public function setEnabled(bool $enabled): static { $this->enabled = $enabled; return $this; } public function hasPassword(): bool { return null !== $this->encryptedPassword; } }