Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/cluster/PhabricatorDatabaseRef.php
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | public function addReplicaRef(PhabricatorDatabaseRef $replica_ref) { | ||||
$this->replicaRefs[] = $replica_ref; | $this->replicaRefs[] = $replica_ref; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getReplicaRefs() { | public function getReplicaRefs() { | ||||
return $this->replicaRefs; | return $this->replicaRefs; | ||||
} | } | ||||
public function getDisplayName() { | |||||
return $this->getRefKey(); | |||||
} | |||||
public function getRefKey() { | public function getRefKey() { | ||||
$host = $this->getHost(); | $host = $this->getHost(); | ||||
$port = $this->getPort(); | $port = $this->getPort(); | ||||
if (strlen($port)) { | if (strlen($port)) { | ||||
return "{$host}:{$port}"; | return "{$host}:{$port}"; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 513 Lines • Show Last 20 Lines |