Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function createModification(DiscountInterface $discount) |
||
24 | { |
||
25 | $modification = new Modification(); |
||
26 | $modification->setLabel('discount'); |
||
27 | $modification->setDescription($discount->getDescription()); |
||
28 | $modification->setModificationOriginId($discount->getId()); |
||
29 | $modification->setModificationType(get_class($discount)); |
||
30 | |||
31 | return $modification; |
||
32 | } |
||
33 | } |
||
34 |