Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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);
25
 
26
    /**
27
     * Formats a section title.
28
     */
29
    public function section(string $message);
30
 
31
    /**
32
     * Formats a list.
33
     */
34
    public function listing(array $elements);
35
 
36
    /**
37
     * Formats informational text.
38
     */
39
    public function text(string|array $message);
40
 
41
    /**
42
     * Formats a success result bar.
43
     */
44
    public function success(string|array $message);
45
 
46
    /**
47
     * Formats an error result bar.
48
     */
49
    public function error(string|array $message);
50
 
51
    /**
52
     * Formats an warning result bar.
53
     */
54
    public function warning(string|array $message);
55
 
56
    /**
57
     * Formats a note admonition.
58
     */
59
    public function note(string|array $message);
60
 
61
    /**
62
     * Formats a caution admonition.
63
     */
64
    public function caution(string|array $message);
65
 
66
    /**
67
     * Formats a table.
68
     */
69
    public function table(array $headers, array $rows);
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);
95
 
96
    /**
97
     * Starts the progress output.
98
     */
99
    public function progressStart(int $max = 0);
100
 
101
    /**
102
     * Advances the progress output X steps.
103
     */
104
    public function progressAdvance(int $step = 1);
105
 
106
    /**
107
     * Finishes the progress output.
108
     */
109
    public function progressFinish();
110
}