您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }