src/Price/Model/AdjustableTrait.php
public function removeAdjustmentByLabel($adjustmentLabel)
    {
        /** @var AdjustmentInterface $adjustment */
        foreach ($this->adjustments as $adjustment) {
            if ($adjustmentLabel == $adjustment->getLabel()) {
                $this->removeAdjustment($adjustment);
                return $this;
            }
        }

        return $this;
    }
public function removeAdjustmentByLabel($adjustmentLabel)
    {
        /** @var AdjustmentInterface $adjustment */
        foreach ($this->adjustments as $adjustment) {
            if ($adjustmentLabel == $adjustment->getLabel()) {
                $this->removeAdjustment($adjustment);
                return $this;
            }
        }

        return $this;
    }
public function removeAdjustmentByLabel ( $ adjustmentLabel ) { /** @var AdjustmentInterface $adjustment */ foreach ( $ this -> adjustments as $ adjustment ) { if ( $ adjustmentLabel == $ adjustment -> getLabel ( ) ) { $ this -> removeAdjustment ( $ adjustment ) ; return $ this ; } } return $ this ; }
Removes an adjustment by label

@param string $adjustmentLabel
@return $this
Removes an adjustment by label