Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * Get all non-shipped orders count
  *
  * @return integer Non-shipped orders count
  */
 private function getNonShippedOrdersCount()
 {
     $notShippedOrders = $this->orderRepository->getOrdersToPrepare();
     return count($notShippedOrders);
 }