Liip\RMT\Information\InformationCollector::setValueFor PHP Method

setValueFor() public method

public setValueFor ( $requestName, $value )
    public function setValueFor($requestName, $value)
    {
        return $this->getRequest($requestName)->setValue($value);
    }

Usage Example

示例#1
0
 protected function interact(InputInterface $input, OutputInterface $output)
 {
     // Fill up questions
     if ($this->informationCollector->hasMissingInformation()) {
         foreach ($this->informationCollector->getInteractiveQuestions() as $name => $question) {
             $answer = $this->askQuestion($question);
             $this->informationCollector->setValueFor($name, $answer);
             $this->writeEmptyLine();
         }
     }
 }
All Usage Examples Of Liip\RMT\Information\InformationCollector::setValueFor