public function setLabel($label)
    {
        if (Format::isString256($label) === true) {
            $this->label = $label;
        } else {
            $msg = "The label argument must be a string with at most 256 characters.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setLabel($label)
    {
        if (Format::isString256($label) === true) {
            $this->label = $label;
        } else {
            $msg = "The label argument must be a string with at most 256 characters.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setLabel ( $ label ) { if ( Format :: isString256 ( $ label ) === true ) { $ this -> label = $ label ; } else { $ msg = "The label argument must be a string with at most 256 characters." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the label of the item.

@param string $label A string with at most 256 characters.
@throws \InvalidArgumentException If $label is not a string with at most 256 characters.
Set the label of the item .