addType('accountId', 'integer'); $this->addType('mailboxId', 'integer'); $this->addType('createdAt', 'integer'); } #[ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'id' => $this->getId(), 'ownerUserId' => $this->getOwnerUserId(), 'accountId' => $this->getAccountId(), 'mailboxId' => $this->getMailboxId(), 'shareType' => $this->getShareType(), 'shareWith' => $this->getShareWith(), 'permission' => $this->getPermission(), 'createdAt' => $this->getCreatedAt(), ]; } }