addType('roomId', Types::BIGINT); $this->addType('messageId', Types::BIGINT); $this->addType('messageTime', Types::BIGINT); $this->addType('objectType', Types::STRING); $this->addType('actorType', Types::STRING); $this->addType('actorId', Types::STRING); } /** * @return array */ public function asArray(): array { return [ 'id' => $this->getId(), 'room_id' => $this->getRoomId(), 'message_id' => $this->getMessageId(), 'message_time' => $this->getMessageTime(), 'object_type' => $this->getObjectType(), 'actor_type' => $this->getActorType(), 'actor_id' => $this->getActorId(), ]; } }