Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/conduit/protocol/ConduitAPIResponse.php
12256 views
1
<?php
2
3
final class ConduitAPIResponse extends Phobject {
4
5
private $result;
6
private $errorCode;
7
private $errorInfo;
8
9
public function setResult($result) {
10
$this->result = $result;
11
return $this;
12
}
13
14
public function getResult() {
15
return $this->result;
16
}
17
18
public function setErrorCode($error_code) {
19
$this->errorCode = $error_code;
20
return $this;
21
}
22
23
public function getErrorCode() {
24
return $this->errorCode;
25
}
26
27
public function setErrorInfo($error_info) {
28
$this->errorInfo = $error_info;
29
return $this;
30
}
31
public function getErrorInfo() {
32
return $this->errorInfo;
33
}
34
35
public function toDictionary() {
36
return array(
37
'result' => $this->getResult(),
38
'error_code' => $this->getErrorCode(),
39
'error_info' => $this->getErrorInfo(),
40
);
41
}
42
43
}
44
45