get('status') === 'Active' && $this->get('useImap'); } public function getEmailAddress(): ?string { return $this->get('emailAddress'); } public function getAssignedUser(): ?Link { return $this->getValueObject('assignedUser'); } public function getTeams(): LinkMultiple { return LinkMultiple::create(); } public function keepFetchedEmailsUnread(): bool { return (bool) $this->get('keepFetchedEmailsUnread'); } public function getFetchData(): stdClass { $data = $this->get('fetchData') ?? (object) []; if (!property_exists($data, 'lastUID')) { $data->lastUID = (object) []; } if (!property_exists($data, 'lastDate')) { $data->lastDate = (object) []; } if (!property_exists($data, 'byDate')) { $data->byDate = (object) []; } return $data; } public function getFetchSince(): ?Date { return $this->getValueObject('fetchSince'); } public function getEmailFolder(): ?Link { return $this->getValueObject('emailFolder'); } /** * @return string[] */ public function getMonitoredFolderList(): array { return $this->get('monitoredFolders') ?? []; } public function getHost(): ?string { return $this->get('host'); } public function getPort(): ?int { return $this->get('port'); } public function getUsername(): ?string { return $this->get('username'); } public function getPassword(): ?string { return $this->get('password'); } public function getSecurity(): ?string { return $this->get('security'); } public function getImapHandlerClassName(): ?string { return $this->get('imapHandler'); } public function getSentFolder(): ?string { return $this->get('sentFolder'); } }