@@ -77,157 +77,157 @@ |
||
77 | 77 | */ |
78 | 78 | class PrimaryReadReplicaConnection extends Connection |
79 | 79 | { |
80 | - /** |
|
81 | - * Primary and Replica connection (one of the randomly picked replicas). |
|
82 | - * |
|
83 | - * @var DriverConnection[]|null[] |
|
84 | - */ |
|
85 | - protected $connections = ['primary' => null, 'replica' => null]; |
|
86 | - |
|
87 | - /** |
|
88 | - * You can keep the replica connection and then switch back to it |
|
89 | - * during the request if you know what you are doing. |
|
90 | - * |
|
91 | - * @var bool |
|
92 | - */ |
|
93 | - protected $keepReplica = false; |
|
94 | - |
|
95 | - /** |
|
96 | - * Creates Primary Replica Connection. |
|
97 | - * |
|
98 | - * @internal The connection can be only instantiated by the driver manager. |
|
99 | - * |
|
100 | - * @param array<string,mixed> $params |
|
101 | - * @psalm-param Params $params |
|
102 | - * |
|
103 | - * @throws Exception |
|
104 | - * @throws InvalidArgumentException |
|
105 | - */ |
|
106 | - public function __construct(array $params, Driver $driver, ?Configuration $config = null, ?EventManager $eventManager = null) |
|
107 | - { |
|
108 | - } |
|
109 | - |
|
110 | - /** |
|
111 | - * Checks if the connection is currently towards the primary or not. |
|
112 | - */ |
|
113 | - public function isConnectedToPrimary(): bool |
|
114 | - { |
|
115 | - } |
|
116 | - |
|
117 | - /** |
|
118 | - * @param string|null $connectionName |
|
119 | - * |
|
120 | - * @return bool |
|
121 | - */ |
|
122 | - public function connect($connectionName = null) |
|
123 | - { |
|
124 | - } |
|
125 | - |
|
126 | - protected function performConnect(?string $connectionName = null): bool |
|
127 | - { |
|
128 | - } |
|
129 | - |
|
130 | - /** |
|
131 | - * Connects to the primary node of the database cluster. |
|
132 | - * |
|
133 | - * All following statements after this will be executed against the primary node. |
|
134 | - */ |
|
135 | - public function ensureConnectedToPrimary(): bool |
|
136 | - { |
|
137 | - } |
|
138 | - |
|
139 | - /** |
|
140 | - * Connects to a replica node of the database cluster. |
|
141 | - * |
|
142 | - * All following statements after this will be executed against the replica node, |
|
143 | - * unless the keepReplica option is set to false and a primary connection |
|
144 | - * was already opened. |
|
145 | - */ |
|
146 | - public function ensureConnectedToReplica(): bool |
|
147 | - { |
|
148 | - } |
|
149 | - |
|
150 | - /** |
|
151 | - * Connects to a specific connection. |
|
152 | - * |
|
153 | - * @param string $connectionName |
|
154 | - * |
|
155 | - * @return DriverConnection |
|
156 | - * |
|
157 | - * @throws Exception |
|
158 | - */ |
|
159 | - protected function connectTo($connectionName) |
|
160 | - { |
|
161 | - } |
|
162 | - |
|
163 | - /** |
|
164 | - * @param string $connectionName |
|
165 | - * @param mixed[] $params |
|
166 | - * |
|
167 | - * @return mixed |
|
168 | - */ |
|
169 | - protected function chooseConnectionConfiguration($connectionName, #[SensitiveParameter] |
|
170 | - $params) |
|
171 | - { |
|
172 | - } |
|
173 | - |
|
174 | - /** |
|
175 | - * {@inheritDoc} |
|
176 | - */ |
|
177 | - public function executeStatement($sql, array $params = [], array $types = []) |
|
178 | - { |
|
179 | - } |
|
180 | - |
|
181 | - /** |
|
182 | - * {@inheritDoc} |
|
183 | - */ |
|
184 | - public function beginTransaction() |
|
185 | - { |
|
186 | - } |
|
187 | - |
|
188 | - /** |
|
189 | - * {@inheritDoc} |
|
190 | - */ |
|
191 | - public function commit() |
|
192 | - { |
|
193 | - } |
|
194 | - |
|
195 | - /** |
|
196 | - * {@inheritDoc} |
|
197 | - */ |
|
198 | - public function rollBack() |
|
199 | - { |
|
200 | - } |
|
201 | - |
|
202 | - /** |
|
203 | - * {@inheritDoc} |
|
204 | - */ |
|
205 | - public function close() |
|
206 | - { |
|
207 | - } |
|
208 | - |
|
209 | - /** |
|
210 | - * {@inheritDoc} |
|
211 | - */ |
|
212 | - public function createSavepoint($savepoint) |
|
213 | - { |
|
214 | - } |
|
215 | - |
|
216 | - /** |
|
217 | - * {@inheritDoc} |
|
218 | - */ |
|
219 | - public function releaseSavepoint($savepoint) |
|
220 | - { |
|
221 | - } |
|
222 | - |
|
223 | - /** |
|
224 | - * {@inheritDoc} |
|
225 | - */ |
|
226 | - public function rollbackSavepoint($savepoint) |
|
227 | - { |
|
228 | - } |
|
229 | - |
|
230 | - public function prepare(string $sql): Statement |
|
231 | - { |
|
232 | - } |
|
80 | + /** |
|
81 | + * Primary and Replica connection (one of the randomly picked replicas). |
|
82 | + * |
|
83 | + * @var DriverConnection[]|null[] |
|
84 | + */ |
|
85 | + protected $connections = ['primary' => null, 'replica' => null]; |
|
86 | + |
|
87 | + /** |
|
88 | + * You can keep the replica connection and then switch back to it |
|
89 | + * during the request if you know what you are doing. |
|
90 | + * |
|
91 | + * @var bool |
|
92 | + */ |
|
93 | + protected $keepReplica = false; |
|
94 | + |
|
95 | + /** |
|
96 | + * Creates Primary Replica Connection. |
|
97 | + * |
|
98 | + * @internal The connection can be only instantiated by the driver manager. |
|
99 | + * |
|
100 | + * @param array<string,mixed> $params |
|
101 | + * @psalm-param Params $params |
|
102 | + * |
|
103 | + * @throws Exception |
|
104 | + * @throws InvalidArgumentException |
|
105 | + */ |
|
106 | + public function __construct(array $params, Driver $driver, ?Configuration $config = null, ?EventManager $eventManager = null) |
|
107 | + { |
|
108 | + } |
|
109 | + |
|
110 | + /** |
|
111 | + * Checks if the connection is currently towards the primary or not. |
|
112 | + */ |
|
113 | + public function isConnectedToPrimary(): bool |
|
114 | + { |
|
115 | + } |
|
116 | + |
|
117 | + /** |
|
118 | + * @param string|null $connectionName |
|
119 | + * |
|
120 | + * @return bool |
|
121 | + */ |
|
122 | + public function connect($connectionName = null) |
|
123 | + { |
|
124 | + } |
|
125 | + |
|
126 | + protected function performConnect(?string $connectionName = null): bool |
|
127 | + { |
|
128 | + } |
|
129 | + |
|
130 | + /** |
|
131 | + * Connects to the primary node of the database cluster. |
|
132 | + * |
|
133 | + * All following statements after this will be executed against the primary node. |
|
134 | + */ |
|
135 | + public function ensureConnectedToPrimary(): bool |
|
136 | + { |
|
137 | + } |
|
138 | + |
|
139 | + /** |
|
140 | + * Connects to a replica node of the database cluster. |
|
141 | + * |
|
142 | + * All following statements after this will be executed against the replica node, |
|
143 | + * unless the keepReplica option is set to false and a primary connection |
|
144 | + * was already opened. |
|
145 | + */ |
|
146 | + public function ensureConnectedToReplica(): bool |
|
147 | + { |
|
148 | + } |
|
149 | + |
|
150 | + /** |
|
151 | + * Connects to a specific connection. |
|
152 | + * |
|
153 | + * @param string $connectionName |
|
154 | + * |
|
155 | + * @return DriverConnection |
|
156 | + * |
|
157 | + * @throws Exception |
|
158 | + */ |
|
159 | + protected function connectTo($connectionName) |
|
160 | + { |
|
161 | + } |
|
162 | + |
|
163 | + /** |
|
164 | + * @param string $connectionName |
|
165 | + * @param mixed[] $params |
|
166 | + * |
|
167 | + * @return mixed |
|
168 | + */ |
|
169 | + protected function chooseConnectionConfiguration($connectionName, #[SensitiveParameter] |
|
170 | + $params) |
|
171 | + { |
|
172 | + } |
|
173 | + |
|
174 | + /** |
|
175 | + * {@inheritDoc} |
|
176 | + */ |
|
177 | + public function executeStatement($sql, array $params = [], array $types = []) |
|
178 | + { |
|
179 | + } |
|
180 | + |
|
181 | + /** |
|
182 | + * {@inheritDoc} |
|
183 | + */ |
|
184 | + public function beginTransaction() |
|
185 | + { |
|
186 | + } |
|
187 | + |
|
188 | + /** |
|
189 | + * {@inheritDoc} |
|
190 | + */ |
|
191 | + public function commit() |
|
192 | + { |
|
193 | + } |
|
194 | + |
|
195 | + /** |
|
196 | + * {@inheritDoc} |
|
197 | + */ |
|
198 | + public function rollBack() |
|
199 | + { |
|
200 | + } |
|
201 | + |
|
202 | + /** |
|
203 | + * {@inheritDoc} |
|
204 | + */ |
|
205 | + public function close() |
|
206 | + { |
|
207 | + } |
|
208 | + |
|
209 | + /** |
|
210 | + * {@inheritDoc} |
|
211 | + */ |
|
212 | + public function createSavepoint($savepoint) |
|
213 | + { |
|
214 | + } |
|
215 | + |
|
216 | + /** |
|
217 | + * {@inheritDoc} |
|
218 | + */ |
|
219 | + public function releaseSavepoint($savepoint) |
|
220 | + { |
|
221 | + } |
|
222 | + |
|
223 | + /** |
|
224 | + * {@inheritDoc} |
|
225 | + */ |
|
226 | + public function rollbackSavepoint($savepoint) |
|
227 | + { |
|
228 | + } |
|
229 | + |
|
230 | + public function prepare(string $sql): Statement |
|
231 | + { |
|
232 | + } |
|
233 | 233 | } |
@@ -21,70 +21,70 @@ |
||
21 | 21 | */ |
22 | 22 | class ConsoleSectionOutput extends StreamOutput |
23 | 23 | { |
24 | - /** |
|
25 | - * @param resource $stream |
|
26 | - * @param ConsoleSectionOutput[] $sections |
|
27 | - */ |
|
28 | - public function __construct($stream, array &$sections, int $verbosity, bool $decorated, OutputFormatterInterface $formatter) |
|
29 | - { |
|
30 | - } |
|
24 | + /** |
|
25 | + * @param resource $stream |
|
26 | + * @param ConsoleSectionOutput[] $sections |
|
27 | + */ |
|
28 | + public function __construct($stream, array &$sections, int $verbosity, bool $decorated, OutputFormatterInterface $formatter) |
|
29 | + { |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Defines a maximum number of lines for this section. |
|
34 | - * |
|
35 | - * When more lines are added, the section will automatically scroll to the |
|
36 | - * end (i.e. remove the first lines to comply with the max height). |
|
37 | - */ |
|
38 | - public function setMaxHeight(int $maxHeight): void |
|
39 | - { |
|
40 | - } |
|
32 | + /** |
|
33 | + * Defines a maximum number of lines for this section. |
|
34 | + * |
|
35 | + * When more lines are added, the section will automatically scroll to the |
|
36 | + * end (i.e. remove the first lines to comply with the max height). |
|
37 | + */ |
|
38 | + public function setMaxHeight(int $maxHeight): void |
|
39 | + { |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Clears previous output for this section. |
|
44 | - * |
|
45 | - * @param int $lines Number of lines to clear. If null, then the entire output of this section is cleared |
|
46 | - * |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function clear(?int $lines = null) |
|
50 | - { |
|
51 | - } |
|
42 | + /** |
|
43 | + * Clears previous output for this section. |
|
44 | + * |
|
45 | + * @param int $lines Number of lines to clear. If null, then the entire output of this section is cleared |
|
46 | + * |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function clear(?int $lines = null) |
|
50 | + { |
|
51 | + } |
|
52 | 52 | |
53 | - /** |
|
54 | - * Overwrites the previous output with a new message. |
|
55 | - * |
|
56 | - * @return void |
|
57 | - */ |
|
58 | - public function overwrite(string|iterable $message) |
|
59 | - { |
|
60 | - } |
|
53 | + /** |
|
54 | + * Overwrites the previous output with a new message. |
|
55 | + * |
|
56 | + * @return void |
|
57 | + */ |
|
58 | + public function overwrite(string|iterable $message) |
|
59 | + { |
|
60 | + } |
|
61 | 61 | |
62 | - public function getContent(): string |
|
63 | - { |
|
64 | - } |
|
62 | + public function getContent(): string |
|
63 | + { |
|
64 | + } |
|
65 | 65 | |
66 | - public function getVisibleContent(): string |
|
67 | - { |
|
68 | - } |
|
66 | + public function getVisibleContent(): string |
|
67 | + { |
|
68 | + } |
|
69 | 69 | |
70 | - /** |
|
71 | - * @internal |
|
72 | - */ |
|
73 | - public function addContent(string $input, bool $newline = true): int |
|
74 | - { |
|
75 | - } |
|
70 | + /** |
|
71 | + * @internal |
|
72 | + */ |
|
73 | + public function addContent(string $input, bool $newline = true): int |
|
74 | + { |
|
75 | + } |
|
76 | 76 | |
77 | - /** |
|
78 | - * @internal |
|
79 | - */ |
|
80 | - public function addNewLineOfInputSubmit(): void |
|
81 | - { |
|
82 | - } |
|
77 | + /** |
|
78 | + * @internal |
|
79 | + */ |
|
80 | + public function addNewLineOfInputSubmit(): void |
|
81 | + { |
|
82 | + } |
|
83 | 83 | |
84 | - /** |
|
85 | - * @return void |
|
86 | - */ |
|
87 | - protected function doWrite(string $message, bool $newline) |
|
88 | - { |
|
89 | - } |
|
84 | + /** |
|
85 | + * @return void |
|
86 | + */ |
|
87 | + protected function doWrite(string $message, bool $newline) |
|
88 | + { |
|
89 | + } |
|
90 | 90 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * |
56 | 56 | * @return void |
57 | 57 | */ |
58 | - public function overwrite(string|iterable $message) |
|
58 | + public function overwrite(string | iterable $message) |
|
59 | 59 | { |
60 | 60 | } |
61 | 61 |
@@ -11,39 +11,39 @@ |
||
11 | 11 | */ |
12 | 12 | interface Constraint |
13 | 13 | { |
14 | - /** @return string */ |
|
15 | - public function getName() |
|
16 | - { |
|
17 | - } |
|
14 | + /** @return string */ |
|
15 | + public function getName() |
|
16 | + { |
|
17 | + } |
|
18 | 18 | |
19 | - /** @return string */ |
|
20 | - public function getQuotedName(AbstractPlatform $platform) |
|
21 | - { |
|
22 | - } |
|
19 | + /** @return string */ |
|
20 | + public function getQuotedName(AbstractPlatform $platform) |
|
21 | + { |
|
22 | + } |
|
23 | 23 | |
24 | - /** |
|
25 | - * Returns the names of the referencing table columns |
|
26 | - * the constraint is associated with. |
|
27 | - * |
|
28 | - * @return string[] |
|
29 | - */ |
|
30 | - public function getColumns() |
|
31 | - { |
|
32 | - } |
|
24 | + /** |
|
25 | + * Returns the names of the referencing table columns |
|
26 | + * the constraint is associated with. |
|
27 | + * |
|
28 | + * @return string[] |
|
29 | + */ |
|
30 | + public function getColumns() |
|
31 | + { |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * Returns the quoted representation of the column names |
|
36 | - * the constraint is associated with. |
|
37 | - * |
|
38 | - * But only if they were defined with one or a column name |
|
39 | - * is a keyword reserved by the platform. |
|
40 | - * Otherwise the plain unquoted value as inserted is returned. |
|
41 | - * |
|
42 | - * @param AbstractPlatform $platform The platform to use for quotation. |
|
43 | - * |
|
44 | - * @return string[] |
|
45 | - */ |
|
46 | - public function getQuotedColumns(AbstractPlatform $platform) |
|
47 | - { |
|
48 | - } |
|
34 | + /** |
|
35 | + * Returns the quoted representation of the column names |
|
36 | + * the constraint is associated with. |
|
37 | + * |
|
38 | + * But only if they were defined with one or a column name |
|
39 | + * is a keyword reserved by the platform. |
|
40 | + * Otherwise the plain unquoted value as inserted is returned. |
|
41 | + * |
|
42 | + * @param AbstractPlatform $platform The platform to use for quotation. |
|
43 | + * |
|
44 | + * @return string[] |
|
45 | + */ |
|
46 | + public function getQuotedColumns(AbstractPlatform $platform) |
|
47 | + { |
|
48 | + } |
|
49 | 49 | } |
@@ -9,14 +9,14 @@ |
||
9 | 9 | /** @psalm-immutable */ |
10 | 10 | interface Exception extends Throwable |
11 | 11 | { |
12 | - /** |
|
13 | - * Returns the SQLSTATE the driver was in at the time the error occurred. |
|
14 | - * |
|
15 | - * Returns null if the driver does not provide a SQLSTATE for the error occurred. |
|
16 | - * |
|
17 | - * @return string|null |
|
18 | - */ |
|
19 | - public function getSQLState() |
|
20 | - { |
|
21 | - } |
|
12 | + /** |
|
13 | + * Returns the SQLSTATE the driver was in at the time the error occurred. |
|
14 | + * |
|
15 | + * Returns null if the driver does not provide a SQLSTATE for the error occurred. |
|
16 | + * |
|
17 | + * @return string|null |
|
18 | + */ |
|
19 | + public function getSQLState() |
|
20 | + { |
|
21 | + } |
|
22 | 22 | } |
@@ -34,52 +34,52 @@ |
||
34 | 34 | */ |
35 | 35 | class QuestionHelper extends Helper |
36 | 36 | { |
37 | - /** |
|
38 | - * Asks a question to the user. |
|
39 | - * |
|
40 | - * @return mixed The user answer |
|
41 | - * |
|
42 | - * @throws RuntimeException If there is no data to read in the input stream |
|
43 | - */ |
|
44 | - public function ask(InputInterface $input, OutputInterface $output, Question $question): mixed |
|
45 | - { |
|
46 | - } |
|
37 | + /** |
|
38 | + * Asks a question to the user. |
|
39 | + * |
|
40 | + * @return mixed The user answer |
|
41 | + * |
|
42 | + * @throws RuntimeException If there is no data to read in the input stream |
|
43 | + */ |
|
44 | + public function ask(InputInterface $input, OutputInterface $output, Question $question): mixed |
|
45 | + { |
|
46 | + } |
|
47 | 47 | |
48 | - public function getName(): string |
|
49 | - { |
|
50 | - } |
|
48 | + public function getName(): string |
|
49 | + { |
|
50 | + } |
|
51 | 51 | |
52 | - /** |
|
53 | - * Prevents usage of stty. |
|
54 | - * |
|
55 | - * @return void |
|
56 | - */ |
|
57 | - public static function disableStty() |
|
58 | - { |
|
59 | - } |
|
52 | + /** |
|
53 | + * Prevents usage of stty. |
|
54 | + * |
|
55 | + * @return void |
|
56 | + */ |
|
57 | + public static function disableStty() |
|
58 | + { |
|
59 | + } |
|
60 | 60 | |
61 | - /** |
|
62 | - * Outputs the question prompt. |
|
63 | - * |
|
64 | - * @return void |
|
65 | - */ |
|
66 | - protected function writePrompt(OutputInterface $output, Question $question) |
|
67 | - { |
|
68 | - } |
|
61 | + /** |
|
62 | + * Outputs the question prompt. |
|
63 | + * |
|
64 | + * @return void |
|
65 | + */ |
|
66 | + protected function writePrompt(OutputInterface $output, Question $question) |
|
67 | + { |
|
68 | + } |
|
69 | 69 | |
70 | - /** |
|
71 | - * @return string[] |
|
72 | - */ |
|
73 | - protected function formatChoiceQuestionChoices(ChoiceQuestion $question, string $tag): array |
|
74 | - { |
|
75 | - } |
|
70 | + /** |
|
71 | + * @return string[] |
|
72 | + */ |
|
73 | + protected function formatChoiceQuestionChoices(ChoiceQuestion $question, string $tag): array |
|
74 | + { |
|
75 | + } |
|
76 | 76 | |
77 | - /** |
|
78 | - * Outputs an error message. |
|
79 | - * |
|
80 | - * @return void |
|
81 | - */ |
|
82 | - protected function writeError(OutputInterface $output, \Exception $error) |
|
83 | - { |
|
84 | - } |
|
77 | + /** |
|
78 | + * Outputs an error message. |
|
79 | + * |
|
80 | + * @return void |
|
81 | + */ |
|
82 | + protected function writeError(OutputInterface $output, \Exception $error) |
|
83 | + { |
|
84 | + } |
|
85 | 85 | } |
@@ -21,187 +21,187 @@ |
||
21 | 21 | */ |
22 | 22 | class Question |
23 | 23 | { |
24 | - /** |
|
25 | - * @param string $question The question to ask to the user |
|
26 | - * @param string|bool|int|float|null $default The default answer to return if the user enters nothing |
|
27 | - */ |
|
28 | - public function __construct(string $question, string|bool|int|float|null $default = null) |
|
29 | - { |
|
30 | - } |
|
31 | - |
|
32 | - /** |
|
33 | - * Returns the question. |
|
34 | - */ |
|
35 | - public function getQuestion(): string |
|
36 | - { |
|
37 | - } |
|
38 | - |
|
39 | - /** |
|
40 | - * Returns the default answer. |
|
41 | - */ |
|
42 | - public function getDefault(): string|bool|int|float|null |
|
43 | - { |
|
44 | - } |
|
45 | - |
|
46 | - /** |
|
47 | - * Returns whether the user response accepts newline characters. |
|
48 | - */ |
|
49 | - public function isMultiline(): bool |
|
50 | - { |
|
51 | - } |
|
52 | - |
|
53 | - /** |
|
54 | - * Sets whether the user response should accept newline characters. |
|
55 | - * |
|
56 | - * @return $this |
|
57 | - */ |
|
58 | - public function setMultiline(bool $multiline): static |
|
59 | - { |
|
60 | - } |
|
61 | - |
|
62 | - /** |
|
63 | - * Returns whether the user response must be hidden. |
|
64 | - */ |
|
65 | - public function isHidden(): bool |
|
66 | - { |
|
67 | - } |
|
68 | - |
|
69 | - /** |
|
70 | - * Sets whether the user response must be hidden or not. |
|
71 | - * |
|
72 | - * @return $this |
|
73 | - * |
|
74 | - * @throws LogicException In case the autocompleter is also used |
|
75 | - */ |
|
76 | - public function setHidden(bool $hidden): static |
|
77 | - { |
|
78 | - } |
|
79 | - |
|
80 | - /** |
|
81 | - * In case the response cannot be hidden, whether to fallback on non-hidden question or not. |
|
82 | - */ |
|
83 | - public function isHiddenFallback(): bool |
|
84 | - { |
|
85 | - } |
|
86 | - |
|
87 | - /** |
|
88 | - * Sets whether to fallback on non-hidden question if the response cannot be hidden. |
|
89 | - * |
|
90 | - * @return $this |
|
91 | - */ |
|
92 | - public function setHiddenFallback(bool $fallback): static |
|
93 | - { |
|
94 | - } |
|
95 | - |
|
96 | - /** |
|
97 | - * Gets values for the autocompleter. |
|
98 | - */ |
|
99 | - public function getAutocompleterValues(): ?iterable |
|
100 | - { |
|
101 | - } |
|
102 | - |
|
103 | - /** |
|
104 | - * Sets values for the autocompleter. |
|
105 | - * |
|
106 | - * @return $this |
|
107 | - * |
|
108 | - * @throws LogicException |
|
109 | - */ |
|
110 | - public function setAutocompleterValues(?iterable $values): static |
|
111 | - { |
|
112 | - } |
|
113 | - |
|
114 | - /** |
|
115 | - * Gets the callback function used for the autocompleter. |
|
116 | - */ |
|
117 | - public function getAutocompleterCallback(): ?callable |
|
118 | - { |
|
119 | - } |
|
120 | - |
|
121 | - /** |
|
122 | - * Sets the callback function used for the autocompleter. |
|
123 | - * |
|
124 | - * The callback is passed the user input as argument and should return an iterable of corresponding suggestions. |
|
125 | - * |
|
126 | - * @return $this |
|
127 | - */ |
|
128 | - public function setAutocompleterCallback(?callable $callback = null): static |
|
129 | - { |
|
130 | - } |
|
131 | - |
|
132 | - /** |
|
133 | - * Sets a validator for the question. |
|
134 | - * |
|
135 | - * @return $this |
|
136 | - */ |
|
137 | - public function setValidator(?callable $validator = null): static |
|
138 | - { |
|
139 | - } |
|
140 | - |
|
141 | - /** |
|
142 | - * Gets the validator for the question. |
|
143 | - */ |
|
144 | - public function getValidator(): ?callable |
|
145 | - { |
|
146 | - } |
|
147 | - |
|
148 | - /** |
|
149 | - * Sets the maximum number of attempts. |
|
150 | - * |
|
151 | - * Null means an unlimited number of attempts. |
|
152 | - * |
|
153 | - * @return $this |
|
154 | - * |
|
155 | - * @throws InvalidArgumentException in case the number of attempts is invalid |
|
156 | - */ |
|
157 | - public function setMaxAttempts(?int $attempts): static |
|
158 | - { |
|
159 | - } |
|
160 | - |
|
161 | - /** |
|
162 | - * Gets the maximum number of attempts. |
|
163 | - * |
|
164 | - * Null means an unlimited number of attempts. |
|
165 | - */ |
|
166 | - public function getMaxAttempts(): ?int |
|
167 | - { |
|
168 | - } |
|
169 | - |
|
170 | - /** |
|
171 | - * Sets a normalizer for the response. |
|
172 | - * |
|
173 | - * The normalizer can be a callable (a string), a closure or a class implementing __invoke. |
|
174 | - * |
|
175 | - * @return $this |
|
176 | - */ |
|
177 | - public function setNormalizer(callable $normalizer): static |
|
178 | - { |
|
179 | - } |
|
180 | - |
|
181 | - /** |
|
182 | - * Gets the normalizer for the response. |
|
183 | - * |
|
184 | - * The normalizer can ba a callable (a string), a closure or a class implementing __invoke. |
|
185 | - */ |
|
186 | - public function getNormalizer(): ?callable |
|
187 | - { |
|
188 | - } |
|
189 | - |
|
190 | - /** |
|
191 | - * @return bool |
|
192 | - */ |
|
193 | - protected function isAssoc(array $array) |
|
194 | - { |
|
195 | - } |
|
196 | - |
|
197 | - public function isTrimmable(): bool |
|
198 | - { |
|
199 | - } |
|
200 | - |
|
201 | - /** |
|
202 | - * @return $this |
|
203 | - */ |
|
204 | - public function setTrimmable(bool $trimmable): static |
|
205 | - { |
|
206 | - } |
|
24 | + /** |
|
25 | + * @param string $question The question to ask to the user |
|
26 | + * @param string|bool|int|float|null $default The default answer to return if the user enters nothing |
|
27 | + */ |
|
28 | + public function __construct(string $question, string|bool|int|float|null $default = null) |
|
29 | + { |
|
30 | + } |
|
31 | + |
|
32 | + /** |
|
33 | + * Returns the question. |
|
34 | + */ |
|
35 | + public function getQuestion(): string |
|
36 | + { |
|
37 | + } |
|
38 | + |
|
39 | + /** |
|
40 | + * Returns the default answer. |
|
41 | + */ |
|
42 | + public function getDefault(): string|bool|int|float|null |
|
43 | + { |
|
44 | + } |
|
45 | + |
|
46 | + /** |
|
47 | + * Returns whether the user response accepts newline characters. |
|
48 | + */ |
|
49 | + public function isMultiline(): bool |
|
50 | + { |
|
51 | + } |
|
52 | + |
|
53 | + /** |
|
54 | + * Sets whether the user response should accept newline characters. |
|
55 | + * |
|
56 | + * @return $this |
|
57 | + */ |
|
58 | + public function setMultiline(bool $multiline): static |
|
59 | + { |
|
60 | + } |
|
61 | + |
|
62 | + /** |
|
63 | + * Returns whether the user response must be hidden. |
|
64 | + */ |
|
65 | + public function isHidden(): bool |
|
66 | + { |
|
67 | + } |
|
68 | + |
|
69 | + /** |
|
70 | + * Sets whether the user response must be hidden or not. |
|
71 | + * |
|
72 | + * @return $this |
|
73 | + * |
|
74 | + * @throws LogicException In case the autocompleter is also used |
|
75 | + */ |
|
76 | + public function setHidden(bool $hidden): static |
|
77 | + { |
|
78 | + } |
|
79 | + |
|
80 | + /** |
|
81 | + * In case the response cannot be hidden, whether to fallback on non-hidden question or not. |
|
82 | + */ |
|
83 | + public function isHiddenFallback(): bool |
|
84 | + { |
|
85 | + } |
|
86 | + |
|
87 | + /** |
|
88 | + * Sets whether to fallback on non-hidden question if the response cannot be hidden. |
|
89 | + * |
|
90 | + * @return $this |
|
91 | + */ |
|
92 | + public function setHiddenFallback(bool $fallback): static |
|
93 | + { |
|
94 | + } |
|
95 | + |
|
96 | + /** |
|
97 | + * Gets values for the autocompleter. |
|
98 | + */ |
|
99 | + public function getAutocompleterValues(): ?iterable |
|
100 | + { |
|
101 | + } |
|
102 | + |
|
103 | + /** |
|
104 | + * Sets values for the autocompleter. |
|
105 | + * |
|
106 | + * @return $this |
|
107 | + * |
|
108 | + * @throws LogicException |
|
109 | + */ |
|
110 | + public function setAutocompleterValues(?iterable $values): static |
|
111 | + { |
|
112 | + } |
|
113 | + |
|
114 | + /** |
|
115 | + * Gets the callback function used for the autocompleter. |
|
116 | + */ |
|
117 | + public function getAutocompleterCallback(): ?callable |
|
118 | + { |
|
119 | + } |
|
120 | + |
|
121 | + /** |
|
122 | + * Sets the callback function used for the autocompleter. |
|
123 | + * |
|
124 | + * The callback is passed the user input as argument and should return an iterable of corresponding suggestions. |
|
125 | + * |
|
126 | + * @return $this |
|
127 | + */ |
|
128 | + public function setAutocompleterCallback(?callable $callback = null): static |
|
129 | + { |
|
130 | + } |
|
131 | + |
|
132 | + /** |
|
133 | + * Sets a validator for the question. |
|
134 | + * |
|
135 | + * @return $this |
|
136 | + */ |
|
137 | + public function setValidator(?callable $validator = null): static |
|
138 | + { |
|
139 | + } |
|
140 | + |
|
141 | + /** |
|
142 | + * Gets the validator for the question. |
|
143 | + */ |
|
144 | + public function getValidator(): ?callable |
|
145 | + { |
|
146 | + } |
|
147 | + |
|
148 | + /** |
|
149 | + * Sets the maximum number of attempts. |
|
150 | + * |
|
151 | + * Null means an unlimited number of attempts. |
|
152 | + * |
|
153 | + * @return $this |
|
154 | + * |
|
155 | + * @throws InvalidArgumentException in case the number of attempts is invalid |
|
156 | + */ |
|
157 | + public function setMaxAttempts(?int $attempts): static |
|
158 | + { |
|
159 | + } |
|
160 | + |
|
161 | + /** |
|
162 | + * Gets the maximum number of attempts. |
|
163 | + * |
|
164 | + * Null means an unlimited number of attempts. |
|
165 | + */ |
|
166 | + public function getMaxAttempts(): ?int |
|
167 | + { |
|
168 | + } |
|
169 | + |
|
170 | + /** |
|
171 | + * Sets a normalizer for the response. |
|
172 | + * |
|
173 | + * The normalizer can be a callable (a string), a closure or a class implementing __invoke. |
|
174 | + * |
|
175 | + * @return $this |
|
176 | + */ |
|
177 | + public function setNormalizer(callable $normalizer): static |
|
178 | + { |
|
179 | + } |
|
180 | + |
|
181 | + /** |
|
182 | + * Gets the normalizer for the response. |
|
183 | + * |
|
184 | + * The normalizer can ba a callable (a string), a closure or a class implementing __invoke. |
|
185 | + */ |
|
186 | + public function getNormalizer(): ?callable |
|
187 | + { |
|
188 | + } |
|
189 | + |
|
190 | + /** |
|
191 | + * @return bool |
|
192 | + */ |
|
193 | + protected function isAssoc(array $array) |
|
194 | + { |
|
195 | + } |
|
196 | + |
|
197 | + public function isTrimmable(): bool |
|
198 | + { |
|
199 | + } |
|
200 | + |
|
201 | + /** |
|
202 | + * @return $this |
|
203 | + */ |
|
204 | + public function setTrimmable(bool $trimmable): static |
|
205 | + { |
|
206 | + } |
|
207 | 207 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param string $question The question to ask to the user |
26 | 26 | * @param string|bool|int|float|null $default The default answer to return if the user enters nothing |
27 | 27 | */ |
28 | - public function __construct(string $question, string|bool|int|float|null $default = null) |
|
28 | + public function __construct(string $question, string | bool | int | float | null $default = null) |
|
29 | 29 | { |
30 | 30 | } |
31 | 31 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | /** |
40 | 40 | * Returns the default answer. |
41 | 41 | */ |
42 | - public function getDefault(): string|bool|int|float|null |
|
42 | + public function getDefault(): string | bool | int | float | null |
|
43 | 43 | { |
44 | 44 | } |
45 | 45 |
@@ -29,84 +29,84 @@ |
||
29 | 29 | */ |
30 | 30 | abstract class Output implements OutputInterface |
31 | 31 | { |
32 | - /** |
|
33 | - * @param int|null $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface) |
|
34 | - * @param bool $decorated Whether to decorate messages |
|
35 | - * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) |
|
36 | - */ |
|
37 | - public function __construct(?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, ?OutputFormatterInterface $formatter = null) |
|
38 | - { |
|
39 | - } |
|
40 | - |
|
41 | - /** |
|
42 | - * @return void |
|
43 | - */ |
|
44 | - public function setFormatter(OutputFormatterInterface $formatter) |
|
45 | - { |
|
46 | - } |
|
47 | - |
|
48 | - public function getFormatter(): OutputFormatterInterface |
|
49 | - { |
|
50 | - } |
|
51 | - |
|
52 | - /** |
|
53 | - * @return void |
|
54 | - */ |
|
55 | - public function setDecorated(bool $decorated) |
|
56 | - { |
|
57 | - } |
|
58 | - |
|
59 | - public function isDecorated(): bool |
|
60 | - { |
|
61 | - } |
|
62 | - |
|
63 | - /** |
|
64 | - * @return void |
|
65 | - */ |
|
66 | - public function setVerbosity(int $level) |
|
67 | - { |
|
68 | - } |
|
69 | - |
|
70 | - public function getVerbosity(): int |
|
71 | - { |
|
72 | - } |
|
73 | - |
|
74 | - public function isQuiet(): bool |
|
75 | - { |
|
76 | - } |
|
77 | - |
|
78 | - public function isVerbose(): bool |
|
79 | - { |
|
80 | - } |
|
81 | - |
|
82 | - public function isVeryVerbose(): bool |
|
83 | - { |
|
84 | - } |
|
85 | - |
|
86 | - public function isDebug(): bool |
|
87 | - { |
|
88 | - } |
|
89 | - |
|
90 | - /** |
|
91 | - * @return void |
|
92 | - */ |
|
93 | - public function writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL) |
|
94 | - { |
|
95 | - } |
|
96 | - |
|
97 | - /** |
|
98 | - * @return void |
|
99 | - */ |
|
100 | - public function write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL) |
|
101 | - { |
|
102 | - } |
|
103 | - |
|
104 | - /** |
|
105 | - * Writes a message to the output. |
|
106 | - * |
|
107 | - * @return void |
|
108 | - */ |
|
109 | - abstract protected function doWrite(string $message, bool $newline) |
|
110 | - { |
|
111 | - } |
|
32 | + /** |
|
33 | + * @param int|null $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface) |
|
34 | + * @param bool $decorated Whether to decorate messages |
|
35 | + * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) |
|
36 | + */ |
|
37 | + public function __construct(?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, ?OutputFormatterInterface $formatter = null) |
|
38 | + { |
|
39 | + } |
|
40 | + |
|
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
44 | + public function setFormatter(OutputFormatterInterface $formatter) |
|
45 | + { |
|
46 | + } |
|
47 | + |
|
48 | + public function getFormatter(): OutputFormatterInterface |
|
49 | + { |
|
50 | + } |
|
51 | + |
|
52 | + /** |
|
53 | + * @return void |
|
54 | + */ |
|
55 | + public function setDecorated(bool $decorated) |
|
56 | + { |
|
57 | + } |
|
58 | + |
|
59 | + public function isDecorated(): bool |
|
60 | + { |
|
61 | + } |
|
62 | + |
|
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
66 | + public function setVerbosity(int $level) |
|
67 | + { |
|
68 | + } |
|
69 | + |
|
70 | + public function getVerbosity(): int |
|
71 | + { |
|
72 | + } |
|
73 | + |
|
74 | + public function isQuiet(): bool |
|
75 | + { |
|
76 | + } |
|
77 | + |
|
78 | + public function isVerbose(): bool |
|
79 | + { |
|
80 | + } |
|
81 | + |
|
82 | + public function isVeryVerbose(): bool |
|
83 | + { |
|
84 | + } |
|
85 | + |
|
86 | + public function isDebug(): bool |
|
87 | + { |
|
88 | + } |
|
89 | + |
|
90 | + /** |
|
91 | + * @return void |
|
92 | + */ |
|
93 | + public function writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL) |
|
94 | + { |
|
95 | + } |
|
96 | + |
|
97 | + /** |
|
98 | + * @return void |
|
99 | + */ |
|
100 | + public function write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL) |
|
101 | + { |
|
102 | + } |
|
103 | + |
|
104 | + /** |
|
105 | + * Writes a message to the output. |
|
106 | + * |
|
107 | + * @return void |
|
108 | + */ |
|
109 | + abstract protected function doWrite(string $message, bool $newline) |
|
110 | + { |
|
111 | + } |
|
112 | 112 | } |
@@ -90,14 +90,14 @@ |
||
90 | 90 | /** |
91 | 91 | * @return void |
92 | 92 | */ |
93 | - public function writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL) |
|
93 | + public function writeln(string | iterable $messages, int $options = self::OUTPUT_NORMAL) |
|
94 | 94 | { |
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | 98 | * @return void |
99 | 99 | */ |
100 | - public function write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL) |
|
100 | + public function write(string | iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL) |
|
101 | 101 | { |
102 | 102 | } |
103 | 103 |
@@ -7,25 +7,25 @@ |
||
7 | 7 | interface CompletionAwareInterface |
8 | 8 | { |
9 | 9 | |
10 | - /** |
|
11 | - * Return possible values for the named option |
|
12 | - * |
|
13 | - * @param string $optionName |
|
14 | - * @param CompletionContext $context |
|
15 | - * @return array |
|
16 | - */ |
|
17 | - public function completeOptionValues($optionName, CompletionContext $context) |
|
18 | - { |
|
19 | - } |
|
10 | + /** |
|
11 | + * Return possible values for the named option |
|
12 | + * |
|
13 | + * @param string $optionName |
|
14 | + * @param CompletionContext $context |
|
15 | + * @return array |
|
16 | + */ |
|
17 | + public function completeOptionValues($optionName, CompletionContext $context) |
|
18 | + { |
|
19 | + } |
|
20 | 20 | |
21 | - /** |
|
22 | - * Return possible values for the named argument |
|
23 | - * |
|
24 | - * @param string $argumentName |
|
25 | - * @param CompletionContext $context |
|
26 | - * @return array |
|
27 | - */ |
|
28 | - public function completeArgumentValues($argumentName, CompletionContext $context) |
|
29 | - { |
|
30 | - } |
|
21 | + /** |
|
22 | + * Return possible values for the named argument |
|
23 | + * |
|
24 | + * @param string $argumentName |
|
25 | + * @param CompletionContext $context |
|
26 | + * @return array |
|
27 | + */ |
|
28 | + public function completeArgumentValues($argumentName, CompletionContext $context) |
|
29 | + { |
|
30 | + } |
|
31 | 31 | } |
@@ -29,190 +29,190 @@ |
||
29 | 29 | */ |
30 | 30 | class Table |
31 | 31 | { |
32 | - private const SEPARATOR_TOP = 0; |
|
33 | - private const SEPARATOR_TOP_BOTTOM = 1; |
|
34 | - private const SEPARATOR_MID = 2; |
|
35 | - private const SEPARATOR_BOTTOM = 3; |
|
36 | - private const BORDER_OUTSIDE = 0; |
|
37 | - private const BORDER_INSIDE = 1; |
|
38 | - private const DISPLAY_ORIENTATION_DEFAULT = 'default'; |
|
39 | - private const DISPLAY_ORIENTATION_HORIZONTAL = 'horizontal'; |
|
40 | - private const DISPLAY_ORIENTATION_VERTICAL = 'vertical'; |
|
41 | - |
|
42 | - public function __construct(OutputInterface $output) |
|
43 | - { |
|
44 | - } |
|
45 | - |
|
46 | - /** |
|
47 | - * Sets a style definition. |
|
48 | - * |
|
49 | - * @return void |
|
50 | - */ |
|
51 | - public static function setStyleDefinition(string $name, TableStyle $style) |
|
52 | - { |
|
53 | - } |
|
54 | - |
|
55 | - /** |
|
56 | - * Gets a style definition by name. |
|
57 | - */ |
|
58 | - public static function getStyleDefinition(string $name): TableStyle |
|
59 | - { |
|
60 | - } |
|
61 | - |
|
62 | - /** |
|
63 | - * Sets table style. |
|
64 | - * |
|
65 | - * @return $this |
|
66 | - */ |
|
67 | - public function setStyle(TableStyle|string $name): static |
|
68 | - { |
|
69 | - } |
|
70 | - |
|
71 | - /** |
|
72 | - * Gets the current table style. |
|
73 | - */ |
|
74 | - public function getStyle(): TableStyle |
|
75 | - { |
|
76 | - } |
|
77 | - |
|
78 | - /** |
|
79 | - * Sets table column style. |
|
80 | - * |
|
81 | - * @param TableStyle|string $name The style name or a TableStyle instance |
|
82 | - * |
|
83 | - * @return $this |
|
84 | - */ |
|
85 | - public function setColumnStyle(int $columnIndex, TableStyle|string $name): static |
|
86 | - { |
|
87 | - } |
|
88 | - |
|
89 | - /** |
|
90 | - * Gets the current style for a column. |
|
91 | - * |
|
92 | - * If style was not set, it returns the global table style. |
|
93 | - */ |
|
94 | - public function getColumnStyle(int $columnIndex): TableStyle |
|
95 | - { |
|
96 | - } |
|
97 | - |
|
98 | - /** |
|
99 | - * Sets the minimum width of a column. |
|
100 | - * |
|
101 | - * @return $this |
|
102 | - */ |
|
103 | - public function setColumnWidth(int $columnIndex, int $width): static |
|
104 | - { |
|
105 | - } |
|
106 | - |
|
107 | - /** |
|
108 | - * Sets the minimum width of all columns. |
|
109 | - * |
|
110 | - * @return $this |
|
111 | - */ |
|
112 | - public function setColumnWidths(array $widths): static |
|
113 | - { |
|
114 | - } |
|
115 | - |
|
116 | - /** |
|
117 | - * Sets the maximum width of a column. |
|
118 | - * |
|
119 | - * Any cell within this column which contents exceeds the specified width will be wrapped into multiple lines, while |
|
120 | - * formatted strings are preserved. |
|
121 | - * |
|
122 | - * @return $this |
|
123 | - */ |
|
124 | - public function setColumnMaxWidth(int $columnIndex, int $width): static |
|
125 | - { |
|
126 | - } |
|
127 | - |
|
128 | - /** |
|
129 | - * @return $this |
|
130 | - */ |
|
131 | - public function setHeaders(array $headers): static |
|
132 | - { |
|
133 | - } |
|
134 | - |
|
135 | - /** |
|
136 | - * @return $this |
|
137 | - */ |
|
138 | - public function setRows(array $rows) |
|
139 | - { |
|
140 | - } |
|
141 | - |
|
142 | - /** |
|
143 | - * @return $this |
|
144 | - */ |
|
145 | - public function addRows(array $rows): static |
|
146 | - { |
|
147 | - } |
|
148 | - |
|
149 | - /** |
|
150 | - * @return $this |
|
151 | - */ |
|
152 | - public function addRow(TableSeparator|array $row): static |
|
153 | - { |
|
154 | - } |
|
155 | - |
|
156 | - /** |
|
157 | - * Adds a row to the table, and re-renders the table. |
|
158 | - * |
|
159 | - * @return $this |
|
160 | - */ |
|
161 | - public function appendRow(TableSeparator|array $row): static |
|
162 | - { |
|
163 | - } |
|
164 | - |
|
165 | - /** |
|
166 | - * @return $this |
|
167 | - */ |
|
168 | - public function setRow(int|string $column, array $row): static |
|
169 | - { |
|
170 | - } |
|
171 | - |
|
172 | - /** |
|
173 | - * @return $this |
|
174 | - */ |
|
175 | - public function setHeaderTitle(?string $title): static |
|
176 | - { |
|
177 | - } |
|
178 | - |
|
179 | - /** |
|
180 | - * @return $this |
|
181 | - */ |
|
182 | - public function setFooterTitle(?string $title): static |
|
183 | - { |
|
184 | - } |
|
185 | - |
|
186 | - /** |
|
187 | - * @return $this |
|
188 | - */ |
|
189 | - public function setHorizontal(bool $horizontal = true): static |
|
190 | - { |
|
191 | - } |
|
192 | - |
|
193 | - /** |
|
194 | - * @return $this |
|
195 | - */ |
|
196 | - public function setVertical(bool $vertical = true): static |
|
197 | - { |
|
198 | - } |
|
199 | - |
|
200 | - /** |
|
201 | - * Renders table to output. |
|
202 | - * |
|
203 | - * Example: |
|
204 | - * |
|
205 | - * +---------------+-----------------------+------------------+ |
|
206 | - * | ISBN | Title | Author | |
|
207 | - * +---------------+-----------------------+------------------+ |
|
208 | - * | 99921-58-10-7 | Divine Comedy | Dante Alighieri | |
|
209 | - * | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | |
|
210 | - * | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | |
|
211 | - * +---------------+-----------------------+------------------+ |
|
212 | - * |
|
213 | - * @return void |
|
214 | - */ |
|
215 | - public function render() |
|
216 | - { |
|
217 | - } |
|
32 | + private const SEPARATOR_TOP = 0; |
|
33 | + private const SEPARATOR_TOP_BOTTOM = 1; |
|
34 | + private const SEPARATOR_MID = 2; |
|
35 | + private const SEPARATOR_BOTTOM = 3; |
|
36 | + private const BORDER_OUTSIDE = 0; |
|
37 | + private const BORDER_INSIDE = 1; |
|
38 | + private const DISPLAY_ORIENTATION_DEFAULT = 'default'; |
|
39 | + private const DISPLAY_ORIENTATION_HORIZONTAL = 'horizontal'; |
|
40 | + private const DISPLAY_ORIENTATION_VERTICAL = 'vertical'; |
|
41 | + |
|
42 | + public function __construct(OutputInterface $output) |
|
43 | + { |
|
44 | + } |
|
45 | + |
|
46 | + /** |
|
47 | + * Sets a style definition. |
|
48 | + * |
|
49 | + * @return void |
|
50 | + */ |
|
51 | + public static function setStyleDefinition(string $name, TableStyle $style) |
|
52 | + { |
|
53 | + } |
|
54 | + |
|
55 | + /** |
|
56 | + * Gets a style definition by name. |
|
57 | + */ |
|
58 | + public static function getStyleDefinition(string $name): TableStyle |
|
59 | + { |
|
60 | + } |
|
61 | + |
|
62 | + /** |
|
63 | + * Sets table style. |
|
64 | + * |
|
65 | + * @return $this |
|
66 | + */ |
|
67 | + public function setStyle(TableStyle|string $name): static |
|
68 | + { |
|
69 | + } |
|
70 | + |
|
71 | + /** |
|
72 | + * Gets the current table style. |
|
73 | + */ |
|
74 | + public function getStyle(): TableStyle |
|
75 | + { |
|
76 | + } |
|
77 | + |
|
78 | + /** |
|
79 | + * Sets table column style. |
|
80 | + * |
|
81 | + * @param TableStyle|string $name The style name or a TableStyle instance |
|
82 | + * |
|
83 | + * @return $this |
|
84 | + */ |
|
85 | + public function setColumnStyle(int $columnIndex, TableStyle|string $name): static |
|
86 | + { |
|
87 | + } |
|
88 | + |
|
89 | + /** |
|
90 | + * Gets the current style for a column. |
|
91 | + * |
|
92 | + * If style was not set, it returns the global table style. |
|
93 | + */ |
|
94 | + public function getColumnStyle(int $columnIndex): TableStyle |
|
95 | + { |
|
96 | + } |
|
97 | + |
|
98 | + /** |
|
99 | + * Sets the minimum width of a column. |
|
100 | + * |
|
101 | + * @return $this |
|
102 | + */ |
|
103 | + public function setColumnWidth(int $columnIndex, int $width): static |
|
104 | + { |
|
105 | + } |
|
106 | + |
|
107 | + /** |
|
108 | + * Sets the minimum width of all columns. |
|
109 | + * |
|
110 | + * @return $this |
|
111 | + */ |
|
112 | + public function setColumnWidths(array $widths): static |
|
113 | + { |
|
114 | + } |
|
115 | + |
|
116 | + /** |
|
117 | + * Sets the maximum width of a column. |
|
118 | + * |
|
119 | + * Any cell within this column which contents exceeds the specified width will be wrapped into multiple lines, while |
|
120 | + * formatted strings are preserved. |
|
121 | + * |
|
122 | + * @return $this |
|
123 | + */ |
|
124 | + public function setColumnMaxWidth(int $columnIndex, int $width): static |
|
125 | + { |
|
126 | + } |
|
127 | + |
|
128 | + /** |
|
129 | + * @return $this |
|
130 | + */ |
|
131 | + public function setHeaders(array $headers): static |
|
132 | + { |
|
133 | + } |
|
134 | + |
|
135 | + /** |
|
136 | + * @return $this |
|
137 | + */ |
|
138 | + public function setRows(array $rows) |
|
139 | + { |
|
140 | + } |
|
141 | + |
|
142 | + /** |
|
143 | + * @return $this |
|
144 | + */ |
|
145 | + public function addRows(array $rows): static |
|
146 | + { |
|
147 | + } |
|
148 | + |
|
149 | + /** |
|
150 | + * @return $this |
|
151 | + */ |
|
152 | + public function addRow(TableSeparator|array $row): static |
|
153 | + { |
|
154 | + } |
|
155 | + |
|
156 | + /** |
|
157 | + * Adds a row to the table, and re-renders the table. |
|
158 | + * |
|
159 | + * @return $this |
|
160 | + */ |
|
161 | + public function appendRow(TableSeparator|array $row): static |
|
162 | + { |
|
163 | + } |
|
164 | + |
|
165 | + /** |
|
166 | + * @return $this |
|
167 | + */ |
|
168 | + public function setRow(int|string $column, array $row): static |
|
169 | + { |
|
170 | + } |
|
171 | + |
|
172 | + /** |
|
173 | + * @return $this |
|
174 | + */ |
|
175 | + public function setHeaderTitle(?string $title): static |
|
176 | + { |
|
177 | + } |
|
178 | + |
|
179 | + /** |
|
180 | + * @return $this |
|
181 | + */ |
|
182 | + public function setFooterTitle(?string $title): static |
|
183 | + { |
|
184 | + } |
|
185 | + |
|
186 | + /** |
|
187 | + * @return $this |
|
188 | + */ |
|
189 | + public function setHorizontal(bool $horizontal = true): static |
|
190 | + { |
|
191 | + } |
|
192 | + |
|
193 | + /** |
|
194 | + * @return $this |
|
195 | + */ |
|
196 | + public function setVertical(bool $vertical = true): static |
|
197 | + { |
|
198 | + } |
|
199 | + |
|
200 | + /** |
|
201 | + * Renders table to output. |
|
202 | + * |
|
203 | + * Example: |
|
204 | + * |
|
205 | + * +---------------+-----------------------+------------------+ |
|
206 | + * | ISBN | Title | Author | |
|
207 | + * +---------------+-----------------------+------------------+ |
|
208 | + * | 99921-58-10-7 | Divine Comedy | Dante Alighieri | |
|
209 | + * | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | |
|
210 | + * | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | |
|
211 | + * +---------------+-----------------------+------------------+ |
|
212 | + * |
|
213 | + * @return void |
|
214 | + */ |
|
215 | + public function render() |
|
216 | + { |
|
217 | + } |
|
218 | 218 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @return $this |
66 | 66 | */ |
67 | - public function setStyle(TableStyle|string $name): static |
|
67 | + public function setStyle(TableStyle | string $name): static |
|
68 | 68 | { |
69 | 69 | } |
70 | 70 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @return $this |
84 | 84 | */ |
85 | - public function setColumnStyle(int $columnIndex, TableStyle|string $name): static |
|
85 | + public function setColumnStyle(int $columnIndex, TableStyle | string $name): static |
|
86 | 86 | { |
87 | 87 | } |
88 | 88 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | /** |
150 | 150 | * @return $this |
151 | 151 | */ |
152 | - public function addRow(TableSeparator|array $row): static |
|
152 | + public function addRow(TableSeparator | array $row): static |
|
153 | 153 | { |
154 | 154 | } |
155 | 155 | |
@@ -158,14 +158,14 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @return $this |
160 | 160 | */ |
161 | - public function appendRow(TableSeparator|array $row): static |
|
161 | + public function appendRow(TableSeparator | array $row): static |
|
162 | 162 | { |
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
166 | 166 | * @return $this |
167 | 167 | */ |
168 | - public function setRow(int|string $column, array $row): static |
|
168 | + public function setRow(int | string $column, array $row): static |
|
169 | 169 | { |
170 | 170 | } |
171 | 171 |