1 | <?php |
||
22 | class PriceHelper extends Helper |
||
23 | { |
||
24 | /** @var ProductVariantPriceCalculatorInterface */ |
||
25 | private $productVariantPriceCalculator; |
||
26 | |||
27 | public function __construct(ProductVariantPriceCalculatorInterface $productVariantPriceCalculator) |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | * |
||
35 | * @throws \InvalidArgumentException |
||
36 | */ |
||
37 | public function getPrice(ProductVariantInterface $productVariant, array $context): int |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | * |
||
50 | * @throws \InvalidArgumentException |
||
51 | */ |
||
52 | public function getOriginalPrice(ProductVariantInterface $productVariant, array $context): int |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | * |
||
65 | * @throws \InvalidArgumentException |
||
66 | */ |
||
67 | public function hasDiscount(ProductVariantInterface $productVariant, array $context): bool |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function getName(): string |
||
82 | } |
||
83 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.