| 1 | <?php |
||
| 22 | class OrderItemsSubtotalExtension extends AbstractExtension |
||
| 23 | { |
||
| 24 | /** @var OrderItemsSubtotalCalculatorInterface */ |
||
| 25 | private $calculator; |
||
| 26 | |||
| 27 | public function __construct(?OrderItemsSubtotalCalculatorInterface $calculator = null) |
||
| 40 | |||
| 41 | public function getFunctions(): array |
||
| 47 | |||
| 48 | public function getSubtotal(OrderInterface $order): int |
||
| 52 | } |
||
| 53 |
If you suppress an error, we recommend checking for the error condition explicitly: