first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace League\CLImate\TerminalObject\Dynamic;
|
||||
|
||||
class Confirm extends Input
|
||||
{
|
||||
/**
|
||||
* Let us know if the user confirmed
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function confirmed()
|
||||
{
|
||||
$this->accept(['y', 'n'], true);
|
||||
$this->strict();
|
||||
|
||||
return ($this->prompt() == 'y');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user