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.

23 lines
408B

  1. <?php
  2. namespace domain\Product\Product;
  3. use domain\_\AbstractBuilder;
  4. class ProductBuilder extends AbstractBuilder
  5. {
  6. public function instanciateProduct(): Product
  7. {
  8. $product = new Product();
  9. return $product;
  10. }
  11. public function createProduct(): Product
  12. {
  13. $product = $this->instanciateProduct();
  14. $this->create($product);
  15. return $product;
  16. }
  17. }