private function setLabel($label) { Assertion::string($label, 'Label must be a string.'); Assertion::false($this->hasColon($label), 'Label must not contain a colon.'); $this->label = $label; }