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.

ProductSubscriptionBuilder.php 573B

1234567891011121314151617181920212223
  1. <?php
  2. namespace domain\Subscription\ProductSubscription;
  3. use domain\_\AbstractBuilder;
  4. class ProductSubscriptionBuilder extends AbstractBuilder
  5. {
  6. public function instanciateProductSubscription(): ProductSubscription
  7. {
  8. $productSubscription = new ProductSubscription();
  9. return $productSubscription;
  10. }
  11. public function createProductSubscription(): ProductSubscription
  12. {
  13. $productSubscription = $this->instanciateProductSubscription();
  14. $this->saveCreate($productSubscription);
  15. return $productSubscription;
  16. }
  17. }