Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96311291
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
Wed, Dec 25, 02:04
Size
805 B
Mime Type
text/x-php
Expires
Fri, Dec 27, 02:04 (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
23158620
Attached To
rPH Phabricator
ConduitAPIResponse.php
View Options
<?php
final
class
ConduitAPIResponse
{
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