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.
|
- <?php
-
- namespace domain\Product\Product;
-
- use domain\_\AbstractBuilder;
-
- class ProductBuilder extends AbstractBuilder
- {
- public function instanciateProduct(): Product
- {
- $product = new Product();
-
- return $product;
- }
-
- public function createProduct(): Product
- {
- $product = $this->instanciateProduct();
- $this->create($product);
-
- return $product;
- }
- }
|