You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OrderStatusHistorySolver.php 580B

123456789101112131415161718192021
  1. <?php
  2. namespace domain\Order\OrderStatusHistory;
  3. use domain\_\AbstractSolver;
  4. use domain\Order\OrderStatus\OrderStatusSolver;
  5. class OrderStatusHistorySolver extends AbstractSolver
  6. {
  7. protected OrderStatusSolver $orderStatusSolver;
  8. public function loadDependencies(): void
  9. {
  10. $this->orderStatusSolver = $this->loadService(OrderStatusSolver::class);
  11. }
  12. public function getOrderStatusHistoryLabel(OrderStatusHistory $orderStatusHistory): string
  13. {
  14. return $this->orderStatusSolver->getLabel($orderStatusHistory->getOrderStatusAlias());
  15. }
  16. }