Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7187906
ArcanistPromptResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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
Tue, Jul 8, 07:42 (14 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
794170
Default Alt Text
ArcanistPromptResponse.php (1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment