2012-12-30 15:37:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorSetupIssue {
|
|
|
|
|
|
|
|
private $issueKey;
|
|
|
|
private $name;
|
|
|
|
private $message;
|
|
|
|
private $isFatal;
|
|
|
|
private $summary;
|
|
|
|
private $shortName;
|
|
|
|
|
2013-02-22 18:21:01 +01:00
|
|
|
private $isIgnored = false;
|
2012-12-30 15:37:49 +01:00
|
|
|
private $phpExtensions = array();
|
|
|
|
private $phabricatorConfig = array();
|
2013-04-10 22:10:52 +02:00
|
|
|
private $relatedPhabricatorConfig = array();
|
2012-12-30 15:37:49 +01:00
|
|
|
private $phpConfig = array();
|
|
|
|
private $commands = array();
|
2014-08-25 20:41:40 +02:00
|
|
|
private $mysqlConfig = array();
|
2012-12-30 15:37:49 +01:00
|
|
|
|
|
|
|
public function addCommand($command) {
|
|
|
|
$this->commands[] = $command;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCommands() {
|
|
|
|
return $this->commands;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setShortName($short_name) {
|
|
|
|
$this->shortName = $short_name;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortName() {
|
|
|
|
if ($this->shortName === null) {
|
|
|
|
return $this->getName();
|
|
|
|
}
|
|
|
|
return $this->shortName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setName($name) {
|
|
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setSummary($summary) {
|
|
|
|
$this->summary = $summary;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSummary() {
|
|
|
|
if ($this->summary === null) {
|
|
|
|
return $this->getMessage();
|
|
|
|
}
|
|
|
|
return $this->summary;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setIssueKey($issue_key) {
|
|
|
|
$this->issueKey = $issue_key;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIssueKey() {
|
|
|
|
return $this->issueKey;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setIsFatal($is_fatal) {
|
|
|
|
$this->isFatal = $is_fatal;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIsFatal() {
|
|
|
|
return $this->isFatal;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function addPHPConfig($php_config) {
|
|
|
|
$this->phpConfig[] = $php_config;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPHPConfig() {
|
|
|
|
return $this->phpConfig;
|
|
|
|
}
|
|
|
|
|
2014-08-25 20:41:40 +02:00
|
|
|
public function addMySQLConfig($mysql_config) {
|
|
|
|
$this->mysqlConfig[] = $mysql_config;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getMySQLConfig() {
|
|
|
|
return $this->mysqlConfig;
|
|
|
|
}
|
|
|
|
|
2012-12-30 15:37:49 +01:00
|
|
|
public function addPhabricatorConfig($phabricator_config) {
|
|
|
|
$this->phabricatorConfig[] = $phabricator_config;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPhabricatorConfig() {
|
|
|
|
return $this->phabricatorConfig;
|
|
|
|
}
|
|
|
|
|
2013-04-10 22:10:52 +02:00
|
|
|
public function addRelatedPhabricatorConfig($phabricator_config) {
|
|
|
|
$this->relatedPhabricatorConfig[] = $phabricator_config;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRelatedPhabricatorConfig() {
|
|
|
|
return $this->relatedPhabricatorConfig;
|
|
|
|
}
|
|
|
|
|
2012-12-30 15:37:49 +01:00
|
|
|
public function addPHPExtension($php_extension) {
|
|
|
|
$this->phpExtensions[] = $php_extension;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPHPExtensions() {
|
|
|
|
return $this->phpExtensions;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setMessage($message) {
|
|
|
|
$this->message = $message;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getMessage() {
|
|
|
|
return $this->message;
|
|
|
|
}
|
|
|
|
|
2013-02-22 18:21:01 +01:00
|
|
|
public function setIsIgnored($is_ignored) {
|
|
|
|
$this->isIgnored = $is_ignored;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIsIgnored() {
|
|
|
|
return $this->isIgnored;
|
|
|
|
}
|
2012-12-30 15:37:49 +01:00
|
|
|
}
|