Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92295231
ConduitAPIResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Nov 19, 04:18
Size
822 B
Mime Type
text/x-php
Expires
Thu, Nov 21, 04:18 (2 d)
Engine
blob
Format
Raw Data
Handle
22415688
Attached To
rPH Phabricator
ConduitAPIResponse.php
View Options
<?php
final
class
ConduitAPIResponse
extends
Phobject
{
private
$result
;
private
$errorCode
;
private
$errorInfo
;
public
function
setResult
(
$result
)
{
$this
->
result
=
$result
;
return
$this
;
}
public
function
getResult
()
{
return
$this
->
result
;
}
public
function
setErrorCode
(
$error_code
)
{
$this
->
errorCode
=
$error_code
;
return
$this
;
}
public
function
getErrorCode
()
{
return
$this
->
errorCode
;
}
public
function
setErrorInfo
(
$error_info
)
{
$this
->
errorInfo
=
$error_info
;
return
$this
;
}
public
function
getErrorInfo
()
{
return
$this
->
errorInfo
;
}
public
function
toDictionary
()
{
return
array
(
'result'
=>
$this
->
getResult
(),
'error_code'
=>
$this
->
getErrorCode
(),
'error_info'
=>
$this
->
getErrorInfo
(),
);
}
}
Event Timeline
Log In to Comment