Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281851
ArcanistPromptResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistPromptResponse.php
View Options
<?php
final
class
ArcanistPromptResponse
extends
Phobject
{
private
$prompt
;
private
$response
;
private
$configurationSource
;
public
static
function
newFromConfig
(
$map
)
{
PhutilTypeSpec
::
checkMap
(
$map
,
array
(
'prompt'
=>
'string'
,
'response'
=>
'string'
,
)
)
;
return
id
(
new
self
(
)
)
->
setPrompt
(
$map
[
'prompt'
]
)
->
setResponse
(
$map
[
'response'
]
)
;
}
public
function
getStorageDictionary
(
)
{
return
array
(
'prompt'
=>
$this
->
getPrompt
(
)
,
'response'
=>
$this
->
getResponse
(
)
,
)
;
}
public
function
setPrompt
(
$prompt
)
{
$this
->
prompt
=
$prompt
;
return
$this
;
}
public
function
getPrompt
(
)
{
return
$this
->
prompt
;
}
public
function
setResponse
(
$response
)
{
$this
->
response
=
$response
;
return
$this
;
}
public
function
getResponse
(
)
{
return
$this
->
response
;
}
public
function
setConfigurationSource
(
ArcanistConfigurationSource
$configuration_source
)
{
$this
->
configurationSource
=
$configuration_source
;
return
$this
;
}
public
function
getConfigurationSource
(
)
{
return
$this
->
configurationSource
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Mar 24, 01:59 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113362
Default Alt Text
ArcanistPromptResponse.php (1 KB)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment