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.
|
- <?php
-
- namespace domain\Order\OrderStatusHistory;
-
- use domain\_\AbstractSolver;
- use domain\Order\OrderStatus\OrderStatus;
-
- class OrderStatusHistorySolver extends AbstractSolver
- {
- public function getOrderStatusHistoryLabel(OrderStatusHistory $orderStatusHistory): string
- {
- if($orderStatusHistory->getOrderStatusAlias() == OrderStatus::ALIAS_ORDERED) {
- return 'Validée';
- }
- elseif($orderStatusHistory->getOrderStatusAlias() == OrderStatus::ALIAS_UPDATED) {
- return 'Modifiée';
- }
- elseif($orderStatusHistory->getOrderStatusAlias() == OrderStatus::ALIAS_CANCELED) {
- return 'Annulée';
- }
- elseif($orderStatusHistory->getOrderStatusAlias() == OrderStatus::ALIAS_DELETED) {
- return 'Supprimée';
- }
-
- return '';
- }
- }
|