Path: blob/master/src/applications/config/schema/PhabricatorConfigServerSchema.php
12256 views
<?php12final class PhabricatorConfigServerSchema3extends PhabricatorConfigStorageSchema {45private $ref;6private $databases = array();78public function setRef(PhabricatorDatabaseRef $ref) {9$this->ref = $ref;10return $this;11}1213public function getRef() {14return $this->ref;15}1617public function addDatabase(PhabricatorConfigDatabaseSchema $database) {18$key = $database->getName();19if (isset($this->databases[$key])) {20throw new Exception(21pht('Trying to add duplicate database "%s"!', $key));22}23$this->databases[$key] = $database;24return $this;25}2627public function getDatabases() {28return $this->databases;29}3031public function getDatabase($key) {32return idx($this->getDatabases(), $key);33}3435protected function getSubschemata() {36return $this->getDatabases();37}3839protected function compareToSimilarSchema(40PhabricatorConfigStorageSchema $expect) {41return array();42}4344public function newEmptyClone() {45$clone = clone $this;46$clone->databases = array();47return $clone;48}4950}515253