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

25 行
880B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Order;
  3. use Lc\CaracoleBundle\Container\Order\OrderProductReductionCatalogContainer;
  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. $class = OrderProductReductionCatalogContainer::getEntityFqcn();
  11. $orderProductReductionCatalog = new $class;
  12. $orderProductReductionCatalog->setTitle($title);
  13. $orderProductReductionCatalog->setValue($value);
  14. $orderProductReductionCatalog->setUnit($unit);
  15. $orderProductReductionCatalog->setBehaviorTaxRate($behaviorTaxRate);
  16. return $orderProductReductionCatalog;
  17. }
  18. }