/** * {@inheritdoc} */ public function getMasterServer() { if (is_null($this->masterServerId)) { return $this->dbCluster->getMaster(); } return $this->dbCluster->getServer($this->masterServerId); }