コード例 #1
0
 /**
  * @inheritdoc
  */
 public function findById(\string $id) : ProductView
 {
     return $this->repository->findById($id);
 }
コード例 #2
0
ファイル: ProductService.php プロジェクト: igaponov/shop
 public function getProductById(GetProductByIdQuery $query)
 {
     $result = $this->viewRepository->findById($query->getId());
     $query->setResult($result);
 }