1 | <?php |
||
18 | class TableHelper extends AbstractHelper |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $format; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $headers = []; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $rows = []; |
||
34 | |||
35 | /** |
||
36 | * @param string $format |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function setFormat($format) |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getFormat() |
||
53 | |||
54 | /** |
||
55 | * @param OutputInterface $outputInterface |
||
56 | * @param array $rows |
||
57 | * @param string $format [optional] |
||
|
|||
58 | */ |
||
59 | public function renderByFormat(OutputInterface $outputInterface, array $rows, $format = null) |
||
73 | |||
74 | /** |
||
75 | * Takes a two dimensional tabular array with headers as keys in the first row and outputs an ascii table |
||
76 | * |
||
77 | * @deprecated since 1.98.0 use original Symfony table instead. |
||
78 | * |
||
79 | * @param OutputInterface $output |
||
80 | * @param array $rows |
||
81 | */ |
||
82 | public function write(OutputInterface $output, array $rows) |
||
88 | |||
89 | /** |
||
90 | * @param OutputInterface $output |
||
91 | * @param array $rows |
||
92 | */ |
||
93 | public function render(OutputInterface $output, $rows = []) |
||
104 | |||
105 | /** |
||
106 | * @inheritDoc |
||
107 | */ |
||
108 | public function getName() |
||
112 | |||
113 | /** |
||
114 | * @param array $rows |
||
115 | * @return $this |
||
116 | */ |
||
117 | public function setRows(array $rows) |
||
123 | |||
124 | /** |
||
125 | * @param array|string[] $headers |
||
126 | * @return $this |
||
127 | */ |
||
128 | public function setHeaders(array $headers) |
||
134 | } |
||
135 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.