public function setObjectLabel($objectLabel)
    {
        if (is_string($objectLabel) === true) {
            $this->objectLabel = $objectLabel;
        } else {
            $msg = "The 'objectLabel' argument must be a string, '" . gettype($objectLabel) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setObjectLabel($objectLabel)
    {
        if (is_string($objectLabel) === true) {
            $this->objectLabel = $objectLabel;
        } else {
            $msg = "The 'objectLabel' argument must be a string, '" . gettype($objectLabel) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setObjectLabel ( $ objectLabel ) { if ( is_string ( $ objectLabel ) === true ) { $ this -> objectLabel = $ objectLabel ; } else { $ msg = "The 'objectLabel' argument must be a string, '" . gettype ( $ objectLabel ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set an optional label for the image object to be inserted. An empty
string indicates the GapImg has no objectLabel.

@param string $objectLabel A label for the image.
@throws \InvalidArgumentException If $objectLabel is not a string value.
Set an optional label for the image object to be inserted . An empty string indicates the GapImg has no objectLabel .