addType('creationTimestamp','integer'); $this->addType('expirationTimestamp','integer'); } public function jsonSerialize(): array { return [ 'id' => $this->id, 'userId' => $this->userId, 'collectionName' => $this->collectionName, 'transport' => $this->transport, 'data' => $this->data, 'creationTimestamp' => $this->creationTimestamp, 'expirationTimestamp' => $this->expirationTimestamp ]; } }