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