1 | <?php |
||
15 | abstract class BaseOutput |
||
16 | { |
||
17 | /** |
||
18 | * prints a table, values can be modified via $callback. |
||
19 | * |
||
20 | * @param OutputInterface $output |
||
21 | * @param string[] $headings |
||
22 | * @param string[] $keys |
||
23 | * @param array|Pager $data |
||
24 | * @param \Closure $callback |
||
25 | */ |
||
26 | 13 | protected function printTable(OutputInterface $output, array $headings, array $keys, $data, \Closure $callback = null) |
|
46 | |||
47 | /** |
||
48 | * prints a simple boolean. |
||
49 | * |
||
50 | * @param OutputInterface $output |
||
51 | * @param string $success |
||
52 | * @param string $fail |
||
53 | * @param bool $value |
||
54 | * @param bool $line |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 18 | protected function printBoolean(OutputInterface $output, $success, $fail, $value, $line = true) |
|
72 | |||
73 | /** |
||
74 | * prints a list combined as <comment>Heading</comment> : <info>Value</info>, values can be modified via $callback. |
||
75 | * |
||
76 | * @param OutputInterface $output |
||
77 | * @param string[] $headings |
||
78 | * @param string[] $keys |
||
79 | * @param array $data |
||
80 | * @param \Closure $callback |
||
81 | */ |
||
82 | 10 | protected function printList(OutputInterface $output, array $headings, array $keys, array $data, \Closure $callback = null) |
|
97 | |||
98 | /** |
||
99 | * output for references/search api. |
||
100 | * |
||
101 | * @param OutputInterface $output |
||
102 | * @param array|Pager $products |
||
103 | */ |
||
104 | 6 | protected function printProducts(OutputInterface $output, $products) |
|
112 | |||
113 | /** |
||
114 | * prints a simple message. |
||
115 | * |
||
116 | * @param OutputInterface $output |
||
117 | * @param array $response |
||
118 | */ |
||
119 | 3 | protected function printMessage(OutputInterface $output, array $response) |
|
123 | |||
124 | /** |
||
125 | * calculates the max width of a given set of string. |
||
126 | * |
||
127 | * @param string[] $headings |
||
128 | * |
||
129 | * @return int |
||
130 | */ |
||
131 | 10 | private function getColumnWidth(array $headings) |
|
140 | } |
||
141 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.