public function increaseCartLineQuantity(
        CartLineInterface $cartLine,
        $quantity
    ) {
        if (!is_int($quantity) || empty($quantity)) {
            return $this;
        }

        $newQuantity = $cartLine->getQuantity() + $quantity;

        return $this->setCartLineQuantity(
            $cartLine,
            $newQuantity
        );
    }
public function increaseCartLineQuantity(
        CartLineInterface $cartLine,
        $quantity
    ) {
        if (!is_int($quantity) || empty($quantity)) {
            return $this;
        }

        $newQuantity = $cartLine->getQuantity() + $quantity;

        return $this->setCartLineQuantity(
            $cartLine,
            $newQuantity
        );
    }
public function increaseCartLineQuantity ( CartLineInterface $ cartLine , $ quantity ) { if ( ! is_int ( $ quantity ) || empty ( $ quantity ) ) { return $ this ; } $ newQuantity = $ cartLine -> getQuantity ( ) + $ quantity ; return $ this -> setCartLineQuantity ( $ cartLine , $ newQuantity ) ; }
Adds quantity to cartLine.

If quantity is higher than item stock, throw exception

This method dispatches all Cart Check and Load events

@param CartLineInterface $cartLine Cart line
@param int               $quantity Number of units to decrease CartLine quantity

@return $this Self object
Adds quantity to cartLine .