Remove product literal strings in "pht()", part 5
[phabricator.git] / src / infrastructure / env / PhabricatorConfigProxySource.php
blob23e4d0a228eaf00afaabe7197b3da4122c5c8595
1 <?php
3 /**
4 * Configuration source which proxies some other configuration source.
5 */
6 abstract class PhabricatorConfigProxySource
7 extends PhabricatorConfigSource {
9 private $source;
11 final protected function getSource() {
12 if (!$this->source) {
13 throw new Exception(pht('No configuration source set!'));
15 return $this->source;
18 final protected function setSource(PhabricatorConfigSource $source) {
19 $this->source = $source;
20 return $this;
23 public function getAllKeys() {
24 return $this->getSource()->getAllKeys();
27 public function getKeys(array $keys) {
28 return $this->getSource()->getKeys($keys);
31 public function canWrite() {
32 return $this->getSource()->canWrite();
35 public function setKeys(array $keys) {
36 $this->getSource()->setKeys($keys);
37 return $this;
40 public function deleteKeys(array $keys) {
41 $this->getSource()->deleteKeys($keys);
42 return $this;
45 public function setName($name) {
46 $this->getSource()->setName($name);
47 return $this;
50 public function getName() {
51 return $this->getSource()->getName();