1 | <?php |
||
20 | abstract class IOUtil |
||
21 | { |
||
22 | /** |
||
23 | * Convert a user answer to boolean. |
||
24 | * |
||
25 | * @param string $answer |
||
26 | * @return bool |
||
27 | */ |
||
28 | 9 | public static function answerToBool($answer) : bool |
|
32 | |||
33 | /** |
||
34 | * Return cli line separator string. |
||
35 | * |
||
36 | * @param int $length |
||
37 | * @return string |
||
38 | */ |
||
39 | 2 | public static function getLineSeparator(int $length = 80) |
|
43 | } |
||
44 |