Path: blob/master/src/applications/conduit/protocol/ConduitAPIResponse.php
12256 views
<?php12final class ConduitAPIResponse extends Phobject {34private $result;5private $errorCode;6private $errorInfo;78public function setResult($result) {9$this->result = $result;10return $this;11}1213public function getResult() {14return $this->result;15}1617public function setErrorCode($error_code) {18$this->errorCode = $error_code;19return $this;20}2122public function getErrorCode() {23return $this->errorCode;24}2526public function setErrorInfo($error_info) {27$this->errorInfo = $error_info;28return $this;29}30public function getErrorInfo() {31return $this->errorInfo;32}3334public function toDictionary() {35return array(36'result' => $this->getResult(),37'error_code' => $this->getErrorCode(),38'error_info' => $this->getErrorInfo(),39);40}4142}434445