public function validate()
    {
        if (!$this->isValid( $this->getUrl() )) {
            throw new InvalidUrl( sprintf( '"%s" is not a valid url', $this->url ) );
        }

        return $this;
    }
public function validate()
    {
        if (!$this->isValid( $this->getUrl() )) {
            throw new InvalidUrl( sprintf( '"%s" is not a valid url', $this->url ) );
        }

        return $this;
    }
public function validate ( ) { if ( ! $ this -> isValid ( $ this -> getUrl ( ) ) ) { throw new InvalidUrl ( sprintf ( '"%s" is not a valid url' , $ this -> url ) ) ; } return $ this ; }
Validate the url

@return Href
Validate the url