Esempio n. 1
0
 /**
  * Show the confirmation message and return result.
  *
  * @return bool
  */
 public function show()
 {
     $char = parent::show();
     if ($this->ignoreCase) {
         $response = strtolower($char) === strtolower($this->yesChar);
     } else {
         $response = $char === $this->yesChar;
     }
     return $this->lastResponse = $response;
 }
Esempio n. 2
0
 /**
  * Show the confirmation message and return result.
  *
  * @return bool
  */
 public function show()
 {
     $response = parent::show() === $this->yesChar;
     return $this->lastResponse = $response;
 }