1 | <?php |
||
13 | class HtmlTableHeaderBuilder { |
||
14 | |||
15 | /** |
||
16 | * Html content of the header |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | private $content; |
||
21 | |||
22 | /** |
||
23 | * Determines, whether the column should be sortable or not. |
||
24 | * |
||
25 | * @var bool |
||
26 | */ |
||
27 | private $isSortable; |
||
28 | |||
29 | /** |
||
30 | * Determines, whether the content is raw html or should be escaped. |
||
31 | * |
||
32 | * @var bool |
||
33 | */ |
||
34 | private $isRawContent; |
||
35 | |||
36 | /** |
||
37 | * @param string $content HTML |
||
38 | * @param bool $isSortable |
||
39 | * @param bool $isRawContent |
||
40 | * |
||
41 | * @throws InvalidArgumentException |
||
42 | */ |
||
43 | public function __construct( $content, $isSortable = false, $isRawContent = false ) { |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getContent() { |
||
59 | |||
60 | /** |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function getIsSortable() { |
||
66 | |||
67 | /** |
||
68 | * Returns header as html. |
||
69 | * |
||
70 | * @return string HTML |
||
71 | */ |
||
72 | public function toHtml() { |
||
86 | |||
87 | } |
||
88 |