addType('token', Types::STRING); $this->addType('actorType', Types::STRING); $this->addType('actorId', Types::STRING); $this->addType('dateTime', Types::DATETIME); } #[\Override] public function jsonSerialize(): array { return [ 'token' => $this->getToken(), 'actorType' => $this->getActorType(), 'actorId' => $this->getActorId(), 'timestamp' => $this->getDateTime()->getTimestamp(), ]; } }