Liip\RMT\Information\InformationCollector::setValueFor PHP Méthode

setValueFor() public méthode

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

Usage Example

 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