diff options
author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/symfony/console/Style/StyleInterface.php | |
parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/symfony/console/Style/StyleInterface.php')
-rw-r--r-- | vendor/symfony/console/Style/StyleInterface.php | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/vendor/symfony/console/Style/StyleInterface.php b/vendor/symfony/console/Style/StyleInterface.php new file mode 100644 index 0000000..fcc5bc7 --- /dev/null +++ b/vendor/symfony/console/Style/StyleInterface.php | |||
@@ -0,0 +1,110 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Console\Style; | ||
13 | |||
14 | /** | ||
15 | * Output style helpers. | ||
16 | * | ||
17 | * @author Kevin Bond <kevinbond@gmail.com> | ||
18 | */ | ||
19 | interface StyleInterface | ||
20 | { | ||
21 | /** | ||
22 | * Formats a command title. | ||
23 | */ | ||
24 | public function title(string $message): void; | ||
25 | |||
26 | /** | ||
27 | * Formats a section title. | ||
28 | */ | ||
29 | public function section(string $message): void; | ||
30 | |||
31 | /** | ||
32 | * Formats a list. | ||
33 | */ | ||
34 | public function listing(array $elements): void; | ||
35 | |||
36 | /** | ||
37 | * Formats informational text. | ||
38 | */ | ||
39 | public function text(string|array $message): void; | ||
40 | |||
41 | /** | ||
42 | * Formats a success result bar. | ||
43 | */ | ||
44 | public function success(string|array $message): void; | ||
45 | |||
46 | /** | ||
47 | * Formats an error result bar. | ||
48 | */ | ||
49 | public function error(string|array $message): void; | ||
50 | |||
51 | /** | ||
52 | * Formats an warning result bar. | ||
53 | */ | ||
54 | public function warning(string|array $message): void; | ||
55 | |||
56 | /** | ||
57 | * Formats a note admonition. | ||
58 | */ | ||
59 | public function note(string|array $message): void; | ||
60 | |||
61 | /** | ||
62 | * Formats a caution admonition. | ||
63 | */ | ||
64 | public function caution(string|array $message): void; | ||
65 | |||
66 | /** | ||
67 | * Formats a table. | ||
68 | */ | ||
69 | public function table(array $headers, array $rows): void; | ||
70 | |||
71 | /** | ||
72 | * Asks a question. | ||
73 | */ | ||
74 | public function ask(string $question, ?string $default = null, ?callable $validator = null): mixed; | ||
75 | |||
76 | /** | ||
77 | * Asks a question with the user input hidden. | ||
78 | */ | ||
79 | public function askHidden(string $question, ?callable $validator = null): mixed; | ||
80 | |||
81 | /** | ||
82 | * Asks for confirmation. | ||
83 | */ | ||
84 | public function confirm(string $question, bool $default = true): bool; | ||
85 | |||
86 | /** | ||
87 | * Asks a choice question. | ||
88 | */ | ||
89 | public function choice(string $question, array $choices, mixed $default = null): mixed; | ||
90 | |||
91 | /** | ||
92 | * Add newline(s). | ||
93 | */ | ||
94 | public function newLine(int $count = 1): void; | ||
95 | |||
96 | /** | ||
97 | * Starts the progress output. | ||
98 | */ | ||
99 | public function progressStart(int $max = 0): void; | ||
100 | |||
101 | /** | ||
102 | * Advances the progress output X steps. | ||
103 | */ | ||
104 | public function progressAdvance(int $step = 1): void; | ||
105 | |||
106 | /** | ||
107 | * Finishes the progress output. | ||
108 | */ | ||
109 | public function progressFinish(): void; | ||
110 | } | ||