<?php


namespace Shop\Services\Order;


use Shop\Application\Shopping\ShoppingService;
use Shop\Domain\CustomerOrder\Contracts\CustomerOrderEntityInterface;
use Shop\Repositories\CustomerOrder\CustomerOrderRepository;
use Shop\Services\Order\Exceptions\CustomerOrderNotFoundException;

/**
 * @deprecated
 * Class CustomerOrderService
 * @package Shop\Services\Order
 */
class CustomerOrderService extends ShoppingService
{
//
//    protected $orderRepository;
//
//    /**
//     * CustomerOrderService constructor.
//     * @param CustomerOrderRepository $orderRepository
//     */
//    public function __construct(CustomerOrderRepository $orderRepository)
//    {
//        $this->orderRepository = $orderRepository;
//    }
//
//    /**
//     * @param int $id
//     * @return CustomerOrderEntityInterface
//     */
//    public function getOrderById(int $id): CustomerOrderEntityInterface
//    {
//        if (!$order = $this->orderRepository->findById($id)) {
//            throw new CustomerOrderNotFoundException('order not found by id ' . $id);
//        }
//
//        return $order;
//    }

}