Mercurial > hg > isophonics-drupal-site
annotate vendor/consolidation/output-formatters/src/StructuredData/RenderCellInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 namespace Consolidation\OutputFormatters\StructuredData; |
Chris@0 | 3 |
Chris@0 | 4 use Consolidation\OutputFormatters\Options\FormatterOptions; |
Chris@0 | 5 |
Chris@0 | 6 interface RenderCellInterface |
Chris@0 | 7 { |
Chris@0 | 8 /** |
Chris@0 | 9 * Convert the contents of one table cell into a string, |
Chris@0 | 10 * so that it may be placed in the table. Renderer should |
Chris@0 | 11 * return the $cellData passed to it if it does not wish to |
Chris@0 | 12 * process it. |
Chris@0 | 13 * |
Chris@0 | 14 * @param string $key Identifier of the cell being rendered |
Chris@0 | 15 * @param mixed $cellData The data to render |
Chris@0 | 16 * @param FormatterOptions $options The formatting options |
Chris@0 | 17 * @param array $rowData The rest of the row data |
Chris@0 | 18 * |
Chris@0 | 19 * @return mixed |
Chris@0 | 20 */ |
Chris@0 | 21 public function renderCell($key, $cellData, FormatterOptions $options, $rowData); |
Chris@0 | 22 } |