. */ require_once 'phing/input/MultipleChoiceInputRequest.php'; /** * Encapsulates an input request that returns a boolean (yes/no). * * @author Hans Lellelid * @version $Revision: 905 $ * @package phing.input */ class YesNoInputRequest extends MultipleChoiceInputRequest { /** * @return true if the input is one of the allowed values. */ public function isInputValid() { return StringHelper::isBoolean($this->input); } /** * Converts input to boolean. * @return boolean */ public function getInput() { return StringHelper::booleanValue($this->input); } }