comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }