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

@param string $src A URI.
@throws \InvalidArgumentException If $src is not a valid URI.
Set the src attribute .