archive, $this->domainArchive); } /** Why the mailbox is archived: its own setting or the domain default */ public function source(): string { return ($this->archive === '1') ? 'mailbox' : 'domain'; } /** Entry of GET archive/mailboxes */ public function toArray(): array { return [ 'username' => $this->username, 'domain' => $this->domain, 'name' => $this->name, 'active' => $this->active, 'source' => $this->source(), ]; } }