Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/env/PhabricatorConfigSource.php
12241 views
1
<?php
2
3
abstract class PhabricatorConfigSource extends Phobject {
4
5
private $name;
6
7
public function setName($name) {
8
$this->name = $name;
9
return $this;
10
}
11
12
public function getName() {
13
return $this->name;
14
}
15
16
abstract public function getKeys(array $keys);
17
abstract public function getAllKeys();
18
19
public function canWrite() {
20
return false;
21
}
22
23
public function setKeys(array $keys) {
24
throw new Exception(
25
pht('This configuration source does not support writes.'));
26
}
27
28
public function deleteKeys(array $keys) {
29
throw new Exception(
30
pht('This configuration source does not support writes.'));
31
}
32
33
}
34
35