private function handleOrderOperations($request) { include_once __DIR__ . '/../dataController/OrderController.php'; $orderController = new OrderController(); if (isset($request[1])) { $this->setResponseCodesAndData($orderController->getById($request[1]), 1); } else { $this->setResponseCodesAndData($orderController->getAll(), 1); } }