public function piwikUrl($url)
    {
        $this->piwikUrl = (string) $url;

        //ensure the url is ending by "/"
        if (substr($this->piwikUrl, -1) !== '/') {
            $this->piwikUrl .= '/';
        }

        return $this;
    }
public function piwikUrl($url)
    {
        $this->piwikUrl = (string) $url;

        //ensure the url is ending by "/"
        if (substr($this->piwikUrl, -1) !== '/') {
            $this->piwikUrl .= '/';
        }

        return $this;
    }
public function piwikUrl ( $ url ) { $ this -> piwikUrl = ( string ) $ url ; //ensure the url is ending by "/" if ( substr ( $ this -> piwikUrl , - 1 ) !== '/' ) { $ this -> piwikUrl .= '/' ; } return $ this ; }
Set the piwik url.

@param string $url

@return self
Set the piwik url .