public function getLastCartItemAdded()
    {
        return CartItemQuery::create()
            ->filterByCartId($this->getId())
            ->orderByCreatedAt(Criteria::DESC)
            ->findOne()
        ;
    }
public function getLastCartItemAdded()
    {
        return CartItemQuery::create()
            ->filterByCartId($this->getId())
            ->orderByCreatedAt(Criteria::DESC)
            ->findOne()
        ;
    }
public function getLastCartItemAdded ( ) { return CartItemQuery :: create ( ) -> filterByCartId ( $ this -> getId ( ) ) -> orderByCreatedAt ( Criteria :: DESC ) -> findOne ( ) ; }
Retrieve the last item added in the cart

@return CartItem
Retrieve the last item added in the cart