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.

OrderProductReductionCatalogFactory.php 805B

3 years ago
3 years ago
3 years ago
3 years ago
1234567891011121314151617181920212223
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Order;
  3. use App\Entity\Order\OrderProductReductionCatalog;
  4. use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface;
  5. use Lc\SovBundle\Factory\AbstractFactory;
  6. class OrderProductReductionCatalogFactory extends AbstractFactory
  7. {
  8. public function create(string $title, float $value, string $unit, string $behaviorTaxRate): OrderProductReductionCatalogInterface
  9. {
  10. $orderProductReductionCatalog = new OrderProductReductionCatalog();
  11. $orderProductReductionCatalog->setTitle($title);
  12. $orderProductReductionCatalog->setValue($value);
  13. $orderProductReductionCatalog->setUnit($unit);
  14. $orderProductReductionCatalog->setBehaviorTaxRate($behaviorTaxRate);
  15. return $orderProductReductionCatalog;
  16. }
  17. }