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

ProducerPriceRangeBuilder.php 645B

123456789101112131415161718192021222324
  1. <?php
  2. namespace common\logic\Producer\ProducerPriceRange\Service;
  3. use common\logic\AbstractBuilder;
  4. use common\logic\Producer\ProducerPriceRange\Model\ProducerPriceRange;
  5. class ProducerPriceRangeBuilder extends AbstractBuilder
  6. {
  7. public function instanciateProducerPriceRange(): ProducerPriceRange
  8. {
  9. $producerPriceRange = new ProducerPriceRange();
  10. return $producerPriceRange;
  11. }
  12. public function createProducerPriceRange(): ProducerPriceRange
  13. {
  14. $producerPriceRange = $this->instanciateProducerPriceRange();
  15. $this->saveCreate($producerPriceRange);
  16. return $producerPriceRange;
  17. }
  18. }