1 | <?php |
||
18 | class PriceDifferenceWidget extends Widget |
||
19 | { |
||
20 | /** |
||
21 | * @var Money |
||
22 | */ |
||
23 | public $old; |
||
24 | |||
25 | /** |
||
26 | * @var Money |
||
27 | */ |
||
28 | public $new; |
||
29 | /** |
||
30 | * @var MoneyFormatter |
||
31 | */ |
||
32 | private $formatter; |
||
33 | |||
34 | public function __construct(MoneyFormatter $formatter, $config = []) |
||
39 | |||
40 | public function run() |
||
49 | |||
50 | private function renderDifferenceWidget() |
||
64 | |||
65 | private function areCurrenciesSame(): bool |
||
69 | } |
||
70 |