public function setHref($href)
    {
        if (Format::isUri($href) === true) {
            $this->href = $href;
        } else {
            $msg = "The 'href' argument must be a URI, '" . $href . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setHref($href)
    {
        if (Format::isUri($href) === true) {
            $this->href = $href;
        } else {
            $msg = "The 'href' argument must be a URI, '" . $href . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setHref ( $ href ) { if ( Format :: isUri ( $ href ) === true ) { $ this -> href = $ href ; } else { $ msg = "The 'href' argument must be a URI, '" . $ href . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the href attribute.

@param string $href A URI (Uniform Resource Identifier).
@throws InvalidArgumentException If $href is not a URI.
Set the href attribute .