您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }