public function setHref($href)
    {
        if (gettype($href) === 'string') {
            $this->href = $href;
        } else {
            $msg = "href must be a string, '" . gettype($href) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setHref($href)
    {
        if (gettype($href) === 'string') {
            $this->href = $href;
        } else {
            $msg = "href must be a string, '" . gettype($href) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setHref ( $ href ) { if ( gettype ( $ href ) === 'string' ) { $ this -> href = $ href ; } else { $ msg = "href must be a string, '" . gettype ( $ href ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the URI that references the item's file.

@param string $href A URI.
@throws \InvalidArgumentException If $href is not a string.
Set the URI that references the item s file .