PHPRouter\Route::setUrl PHP Method

setUrl() public method

public setUrl ( $url )
    public function setUrl($url)
    {
        $url = (string) $url;
        // make sure that the URL is suffixed with a forward slash
        if (substr($url, -1) !== '/') {
            $url .= '/';
        }
        $this->url = $url;
    }