1 | <?php |
||
18 | class ExampleTableNode extends TableNode |
||
19 | { |
||
20 | /** |
||
21 | * @var string[] |
||
22 | */ |
||
23 | private $tags; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $keyword; |
||
29 | |||
30 | /** |
||
31 | * Initializes example table. |
||
32 | * |
||
33 | * @param array $table Table in form of [$rowLineNumber => [$val1, $val2, $val3]] |
||
34 | * @param string $keyword |
||
35 | * @param string[] $tags |
||
36 | */ |
||
37 | 226 | public function __construct(array $table, $keyword, array $tags = array()) |
|
44 | |||
45 | /** |
||
46 | * Returns node type string |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getNodeType() |
||
54 | |||
55 | /** |
||
56 | * Returns attached tags |
||
57 | * @return \string[] |
||
58 | */ |
||
59 | 8 | public function getTags() |
|
63 | |||
64 | /** |
||
65 | * Returns example table keyword. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | 11 | public function getKeyword() |
|
73 | } |
||
74 |