/** * @inheritdoc */ public function findById(\string $id) : ProductView { return $this->repository->findById($id); }
public function getProductById(GetProductByIdQuery $query) { $result = $this->viewRepository->findById($query->getId()); $query->setResult($result); }