mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
54 lines
922 B
PHP
54 lines
922 B
PHP
|
<?php
|
||
|
|
||
|
abstract class PhabricatorCacheSpec extends Phobject {
|
||
|
|
||
|
private $name;
|
||
|
private $isEnabled = false;
|
||
|
private $version;
|
||
|
private $issues = array();
|
||
|
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
|
||
|
public function setIsEnabled($is_enabled) {
|
||
|
$this->isEnabled = $is_enabled;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getIsEnabled() {
|
||
|
return $this->isEnabled;
|
||
|
}
|
||
|
|
||
|
public function setVersion($version) {
|
||
|
$this->version = $version;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getVersion() {
|
||
|
return $this->version;
|
||
|
}
|
||
|
|
||
|
protected function newIssue($title, $body, $option = null) {
|
||
|
$issue = array(
|
||
|
'title' => $title,
|
||
|
'body' => $body,
|
||
|
'option' => $option,
|
||
|
);
|
||
|
|
||
|
$this->issues[] = $issue;
|
||
|
|
||
|
return $issue;
|
||
|
}
|
||
|
|
||
|
public function getIssues() {
|
||
|
return $this->issues;
|
||
|
}
|
||
|
|
||
|
}
|