collectionType; } /** Метод для сериализации коллекции в JSON */ public function jsonSerialize(): array { return $this->data; } }