You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
553B

  1. <?php
  2. namespace common\logic\Product\ProductPrice\Service;
  3. use common\logic\AbstractBuilder;
  4. use common\logic\Product\ProductPrice\Model\ProductPrice;
  5. class ProductPriceBuilder extends AbstractBuilder
  6. {
  7. public function instanciateProductPrice(): ProductPrice
  8. {
  9. $productPrice = new ProductPrice();
  10. return $productPrice;
  11. }
  12. public function createProductPrice(): ProductPrice
  13. {
  14. $productPrice = $this->instanciateProductPrice();
  15. $this->saveCreate($productPrice);
  16. return $productPrice;
  17. }
  18. }