public function __construct($host = null) { $this->host = !is_null($host) ? $host : 'http://' . $_SERVER['SERVER_NAME']; if (is_null($this->trackPath)) { $this->trackPath = getcwd(); } parent::__construct($this->host); }