mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 09:42:41 +01:00
be7677f211
Summary: T2381 Test Plan: Include existing setup issues in the ignore config option, reduces the number of setup issues in the status bar, moves ignored issues to the bottom of the list, and marks them as ignored. Also include a string corresponding to no setup issue, and verify that application does not break. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5072
122 lines
2.3 KiB
PHP
122 lines
2.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorSetupIssue {
|
|
|
|
private $issueKey;
|
|
private $name;
|
|
private $message;
|
|
private $isFatal;
|
|
private $summary;
|
|
private $shortName;
|
|
|
|
private $isIgnored = false;
|
|
private $phpExtensions = array();
|
|
private $phabricatorConfig = array();
|
|
private $phpConfig = array();
|
|
private $commands = array();
|
|
|
|
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;
|
|
}
|
|
|
|
public function addPhabricatorConfig($phabricator_config) {
|
|
$this->phabricatorConfig[] = $phabricator_config;
|
|
return $this;
|
|
}
|
|
|
|
public function getPhabricatorConfig() {
|
|
return $this->phabricatorConfig;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
public function setIsIgnored($is_ignored) {
|
|
$this->isIgnored = $is_ignored;
|
|
return $this;
|
|
}
|
|
|
|
public function getIsIgnored() {
|
|
return $this->isIgnored;
|
|
}
|
|
}
|