Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / conduit / protocol / ConduitAPIResponse.php
blob5df606ac597dc82f19c2353f1c61bfacc77d814d
1 <?php
3 final class ConduitAPIResponse extends Phobject {
5 private $result;
6 private $errorCode;
7 private $errorInfo;
9 public function setResult($result) {
10 $this->result = $result;
11 return $this;
14 public function getResult() {
15 return $this->result;
18 public function setErrorCode($error_code) {
19 $this->errorCode = $error_code;
20 return $this;
23 public function getErrorCode() {
24 return $this->errorCode;
27 public function setErrorInfo($error_info) {
28 $this->errorInfo = $error_info;
29 return $this;
31 public function getErrorInfo() {
32 return $this->errorInfo;
35 public function toDictionary() {
36 return array(
37 'result' => $this->getResult(),
38 'error_code' => $this->getErrorCode(),
39 'error_info' => $this->getErrorInfo(),