/** * @inheritdoc */ public function getAggregations() { if (!isset($this->aggregations)) { $aggregations = parent::getAggregations(); $this->aggregations = $this->transformer->transformAggregations($aggregations['categories']); } return $this->aggregations; }
/** * @inheritdoc */ public function findById(\string $id) : ProductView { $result = $this->type->getDocument($id); $product = $this->transformer->transformObject($result->getData()); return $product; }