Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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