Removes an adjustment by label

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

        return $this;
    }
630698
public function setSkillLabel($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->skill_label !== $v) {
            $this->skill_label = $v;
            $this->modifiedColumns[SportTableMap::COL_SKILL_LABEL] = true;
        }

        return $this;
    }
670923
public function setLabel($label)
    {
        if (!empty($label) && is_string($label) && ctype_print($label)) {
            $this->label = trim($label);
        }

        return $this;
    }
1124695
public static function label(string $label): self
    {
        $item = new self();

        $item->label = $label;
        $item->slug = Str::slug($label);

        return $item;
    }
599936
public function DeleteLabel(Request\DeleteLabel $DeleteLabel = null)
    {
        $uri = $this->getUri('/label', array());

        return $this->delete($uri, $DeleteLabel);
    }
1223247
public function removeItem($item)
    {
        if (!$item instanceof LineItem) {
            throw new ValidationException(_t(
                "ShoppingCart.WrongItemClass",
                "Item needs to be of class {class}",
                ["class" => LineItem::class]
            ));
        }

        $item->delete();
        $this->save();

        return $this;
    }
397426
public function removeItem(Item $item)
    {
        if ($this->items->contains($item)) {
            $this->items->removeElement($item);
            $item->removeLabel($this);
        }

        return $this;
    }
139983
public function label($label = null, $useLabelAsKey = true)
    {
        if (null !== $label) {
            $this->label = $label;
            $this->useLabelAsKey = $useLabelAsKey;

            return $this;
        }

        if ($this->useLabelAsKey) {
            return __($this->label);
        }
        return $this->label;
    }
1122151
public function deleteLabel(\stdClass $label)
    {
        // Prevents to delete a label which has children.
        if ($this->hasChildren($label)) {
            throw new \LogicException("Can't delete a label which has children.");
        }
        return taxonomy_term_delete($label->tid);
    }
576473
def remove_label(self, doc, label, update_index=True):
        
        doc.remove_label(label)
        if update_index:
            self.upd_doc(doc)
            self.commit()
943359
def RemoveLabels(self, labels_names, owner=None):
    """"""
    if owner is None and not self.token:
      raise ValueError("Can't remove label: No owner specified and "
                       "no access token available.")
    if isinstance(labels_names, string_types):
      raise ValueError("Label list can't be string.")

    owner = owner or self.token.username

    current_labels = self.Get(self.Schema.LABELS)
    for label_name in labels_names:
      label = rdf_aff4.AFF4ObjectLabel(name=label_name, owner=owner)
      current_labels.RemoveLabel(label)

    self.Set(self.Schema.LABELS, current_labels)
7371
private function cleanOriginalLabel($label)
    {
        $label = str_replace(LabelFilter::SEPARATOR_RECURSIVE_LABEL, ' - ', $label);
        $label = SafeDecodeLabel::decodeLabelSafe($label);
        return $label;
    }
35052
public function setLabels($labels) 
	{
		if(is_array($labels)) {
			$this->labels = $labels;
			return $this;
		}
		
		$args = func_get_args();
		$this->labels[$args[0]] = $args[1];
		
		return $this;
	}
480144
public function append($label): self
    {
        $label = $this->filterComponent($label);
        if (null === $label) {
            return $this;
        }

        return new self($this->getContent().self::SEPARATOR.$label);
    }
865168
public function reset($data = [], $labels = [])
    {
        $this->_attributes = $data;
        $this->_labels = $labels;
        $this->_errors = [];
        $this->_validations = [];
        return $this;
    }
7758
public MonitorService deleteLabel(String monitorId, Label label)
    {
        HTTP.DELETE(String.format("/v1/monitors/%s/labels/%s", monitorId, label.getKey()));
        return this;
    }
533420
public function setLabel($label)
    {
        if (in_array(
            $label,
            $this->validLabels
        )) {
            $this->label = $label;
        }

        return $this;
    }