12 namespace Symfony\Component\Console\Helper;
39 if ($triggerDeprecationError) {
40 @trigger_error(
'The '.__CLASS__.
' class is deprecated since version 2.5 and will be removed in 3.0. Use the Symfony\Component\Console\Helper\Table class instead.', E_USER_DEPRECATED);
58 case self::LAYOUT_BORDERLESS:
59 $this->table->setStyle(
'borderless');
62 case self::LAYOUT_COMPACT:
63 $this->table->setStyle(
'compact');
66 case self::LAYOUT_DEFAULT:
67 $this->table->setStyle(
'default');
71 throw new \InvalidArgumentException(sprintf(
'Invalid table layout "%s".', $layout));
79 $this->table->setHeaders($headers);
86 $this->table->setRows($rows);
93 $this->table->addRows($rows);
100 $this->table->addRow($row);
105 public function setRow($column, array $row)
107 $this->table->setRow($column, $row);
121 $this->table->getStyle()->setPaddingChar($paddingChar);
135 $this->table->getStyle()->setHorizontalBorderChar($horizontalBorderChar);
149 $this->table->getStyle()->setVerticalBorderChar($verticalBorderChar);
163 $this->table->getStyle()->setCrossingChar($crossingChar);
177 $this->table->getStyle()->setCellHeaderFormat($cellHeaderFormat);
191 $this->table->getStyle()->setCellHeaderFormat($cellRowFormat);
205 $this->table->getStyle()->setCellRowContentFormat($cellRowContentFormat);
219 $this->table->getStyle()->setBorderFormat($borderFormat);
233 $this->table->getStyle()->setPadType($padType);
254 $p = new \ReflectionProperty($this->table,
'output');
255 $p->setAccessible(
true);
256 $p->setValue($this->table, $output);
258 $this->table->render();