forked from php-school/cli-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInput.php
More file actions
31 lines (19 loc) · 721 Bytes
/
Copy pathInput.php
File metadata and controls
31 lines (19 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace PhpSchool\CliMenu\Input;
use PhpSchool\CliMenu\MenuStyle;
/**
* @author Aydin Hassan <[email protected]>
*/
interface Input
{
public function ask() : InputResult;
public function validate(string $input) : bool;
public function setPromptText(string $promptText) : Input;
public function getPromptText() : string;
public function setValidationFailedText(string $validationFailedText) : Input;
public function getValidationFailedText() : string;
public function setPlaceholderText(string $placeholderText) : Input;
public function getPlaceholderText() : string;
public function filter(string $value) : string;
public function getStyle() : MenuStyle;
}