first commit

This commit is contained in:
2018-08-01 16:00:05 +02:00
commit 944fd76206
3205 changed files with 356767 additions and 0 deletions
@@ -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');
}
}