Set the label for a format object
string $label The new label for the format:
public function setLabel($label) {
if ($label) {
if (!is_string($label)) {
throw new InvalidArgumentException("\$label should be a string");
}
return $this->label = $label;
}
else {
return $this->label = null;
}
}