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.

24 line
645B

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