1 | <?php declare(strict_types=1); |
||
16 | abstract class CartDiscountAbstract implements CartDiscountInterface |
||
17 | { |
||
18 | protected $price; |
||
19 | |||
20 | protected $currency; |
||
21 | |||
22 | protected $description; |
||
23 | |||
24 | protected $priceAfterDiscount; |
||
25 | |||
26 | 3 | public function __construct(string $description, CartInterface $cart, array $config = []) |
|
38 | |||
39 | 1 | public function getDescription(): string |
|
43 | |||
44 | 1 | public function getPriceAfterDiscount(): Money |
|
48 | |||
49 | abstract protected function applyDiscount(): void; |
||
50 | } |
||
51 |