|
1234567891011121314151617181920212223 |
- <?php
-
- namespace Lc\CaracoleBundle\Factory\Order;
-
- use App\Entity\Order\OrderProductReductionCatalog;
- use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface;
- use Lc\SovBundle\Factory\AbstractFactory;
-
- class OrderProductReductionCatalogFactory extends AbstractFactory
- {
- public function create(string $title, float $value, string $unit, string $behaviorTaxRate): OrderProductReductionCatalogInterface
- {
- $orderProductReductionCatalog = new OrderProductReductionCatalog();
-
- $orderProductReductionCatalog->setTitle($title);
- $orderProductReductionCatalog->setValue($value);
- $orderProductReductionCatalog->setUnit($unit);
- $orderProductReductionCatalog->setBehaviorTaxRate($behaviorTaxRate);
-
- return $orderProductReductionCatalog;
- }
-
- }
|