addType('id', 'integer'); $this->addType('rootNodeId', 'integer'); $this->addType('collectiveId', 'integer'); $this->addType('active', 'boolean'); $this->addType('lastSyncedAt', 'integer'); $this->addType('createdAt', 'integer'); $this->addType('updatedAt', 'integer'); } public function jsonSerialize(): array { return [ 'id' => $this->id, 'root_node_id' => $this->rootNodeId, 'root_path' => $this->rootPath, 'location' => $this->location, 'collective_id' => $this->collectiveId, 'active' => $this->active, 'last_synced_at' => $this->lastSyncedAt, 'last_error' => $this->lastError, 'created_at' => $this->createdAt, 'updated_at' => $this->updatedAt, ]; } }