public function setPort($port) { $this->config['port'] = $this->validateInteger($port, "port number"); return $this; }