| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function render(array $containers) |
||
| 29 | { |
||
| 30 | $table = new Table($this->output); |
||
| 31 | $table->setHeaders(['Component', 'Container', 'DNS addresses', 'Port(s)', 'Status']); |
||
| 32 | |||
| 33 | foreach ($containers as $index => $container) { |
||
| 34 | if ($index > 0) { |
||
| 35 | $table->addRow(new TableSeparator()); |
||
| 36 | } |
||
| 37 | |||
| 38 | $table->addRow([ |
||
| 39 | $container->getComponentName(), |
||
| 40 | $container->getName(), |
||
| 41 | implode("\n", $container->getHosts()), |
||
| 42 | implode("\n", $container->getPorts()), |
||
| 43 | $this->getDecoratedState($container), |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | |||
| 47 | $table->render(); |
||
| 48 | } |
||
| 49 | |||
| 64 |