public function setBaseUrl($url) {
		if ($url === '/' || $url === '//') {
			$this->baseUrl = $url;
			return;
		}
		
		$this->baseUrl = rtrim($url, '/') . '/';
		
		return $this;
	}
public function setBaseUrl($url) {
		if ($url === '/' || $url === '//') {
			$this->baseUrl = $url;
			return;
		}
		
		$this->baseUrl = rtrim($url, '/') . '/';
		
		return $this;
	}
public function setBaseUrl ( $ url ) { if ( $ url === '/' || $ url === '//' ) { $ this -> baseUrl = $ url ; return ; } $ this -> baseUrl = rtrim ( $ url , '/' ) . '/' ; return $ this ; }
Set the base url

@param  string $url
@return Resource
Set the base url