1 | <?php |
||
13 | class HtmlTableCellBuilder { |
||
14 | |||
15 | /** |
||
16 | * Html content of the cell. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | private $content; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $attributes; |
||
26 | |||
27 | /** |
||
28 | * Determines, whether the content is raw html or should be escaped. |
||
29 | * |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $isRawContent; |
||
33 | |||
34 | /** |
||
35 | * @param string $content HTML |
||
36 | * @param array $attributes |
||
37 | * @param bool $isRawContent |
||
38 | * |
||
39 | * @throws InvalidArgumentException |
||
40 | */ |
||
41 | public function __construct( $content, array $attributes = [], $isRawContent = false ) { |
||
49 | |||
50 | /** |
||
51 | * @return string HTML |
||
52 | */ |
||
53 | public function getContent() { |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getAttributes() { |
||
63 | |||
64 | /** |
||
65 | * @return string HTML |
||
66 | */ |
||
67 | public function toHtml() { |
||
74 | |||
75 | } |
||
76 |