/** * Given an id, find Order * * @param integer $orderId Order id * * @return Object order */ public function findOrder($orderId) { $this->order = $this->orderRepository->find($orderId); return $this->order; }
/** * Get all non-shipped orders count * * @return integer Non-shipped orders count */ private function getNonShippedOrdersCount() { $notShippedOrders = $this->orderRepository->getOrdersToPrepare(); return count($notShippedOrders); }