protected function handleTypeView ($url)
    {
        if (filter_var($url, FILTER_VALIDATE_URL) === false) {
            throw new InvalidArgumentException("Invalid URL.");
        }

        $this->key = $url;
    }
protected function handleTypeView ($url)
    {
        if (filter_var($url, FILTER_VALIDATE_URL) === false) {
            throw new InvalidArgumentException("Invalid URL.");
        }

        $this->key = $url;
    }
protected function handleTypeView ( $ url ) { if ( filter_var ( $ url , FILTER_VALIDATE_URL ) === false ) { throw new InvalidArgumentException ( "Invalid URL." ) ; } $ this -> key = $ url ; }
Validates the URL that will be visited when clicking the menu item.

@param string $url - The URL to visit when clicking the menu item.
Validates the URL that will be visited when clicking the menu item .