public function setPublishAllPorts($publishAllPorts = null) { $this->publishAllPorts = $publishAllPorts; return $this; }