ff200846c4857d4a90a2aeac6262a05c760f3f54
[yaffs-website] / vendor / consolidation / output-formatters / src / StructuredData / RenderCellInterface.php
1 <?php
2 namespace Consolidation\OutputFormatters\StructuredData;
3
4 use Consolidation\OutputFormatters\Options\FormatterOptions;
5
6 interface RenderCellInterface
7 {
8     /**
9      * Convert the contents of one table cell into a string,
10      * so that it may be placed in the table.  Renderer should
11      * return the $cellData passed to it if it does not wish to
12      * process it.
13      *
14      * @param string $key Identifier of the cell being rendered
15      * @param mixed $cellData The data to render
16      * @param FormatterOptions $options The formatting options
17      * @param array $rowData The rest of the row data
18      *
19      * @return mixed
20      */
21     public function renderCell($key, $cellData, FormatterOptions $options, $rowData);
22 }