| 1 | <?php |
||
| 7 | abstract class BaseColumn |
||
| 8 | { |
||
| 9 | public $title = ''; |
||
| 10 | |||
| 11 | public $value = ''; |
||
| 12 | |||
| 13 | public $headerHtmlOptions = []; |
||
| 14 | |||
| 15 | public $contentHtmlOptions = []; |
||
| 16 | |||
| 17 | public function __construct(array $config) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Formatted header html options |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function headerHtmlOptions() : string |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Formatted content html options |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function contentHtmlOptions() : string |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Render column value for row |
||
| 49 | * @param array|object $row |
||
| 50 | * @return string|mixed |
||
| 51 | */ |
||
| 52 | public abstract function renderValue($row); |
||
| 53 | } |