private function findCartBySessionId()
    {
        $sessionId = $this->session->getId();
        $cartsArray = $this->orderRepository->findBy(
            array(
                'sessionId' => $sessionId,
                'status' => OrderStatus::STATUS_IN_CART
            ),
            array(
                'created' => 'DESC'
            )
        );

        return $cartsArray;
    }
private function findCartBySessionId()
    {
        $sessionId = $this->session->getId();
        $cartsArray = $this->orderRepository->findBy(
            array(
                'sessionId' => $sessionId,
                'status' => OrderStatus::STATUS_IN_CART
            ),
            array(
                'created' => 'DESC'
            )
        );

        return $cartsArray;
    }
private function findCartBySessionId ( ) { $ sessionId = $ this -> session -> getId ( ) ; $ cartsArray = $ this -> orderRepository -> findBy ( array ( 'sessionId' => $ sessionId , 'status' => OrderStatus :: STATUS_IN_CART ) , array ( 'created' => 'DESC' ) ) ; return $ cartsArray ; }
Finds cart by session-id

@return array
Finds cart by session - id