Page MenuHomePhorge

ArcanistPromptResponse.php
No OneTemporary

ArcanistPromptResponse.php

<?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

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)

Event Timeline