1 | <?php |
||
18 | class ExampleTableNode extends TableNode |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $keyword; |
||
24 | |||
25 | /** |
||
26 | * Initializes example table. |
||
27 | * |
||
28 | * @param array $table Table in form of [$rowLineNumber => [$val1, $val2, $val3]] |
||
29 | * @param string $keyword |
||
30 | */ |
||
31 | 34 | public function __construct(array $table, $keyword) |
|
32 | { |
||
33 | 34 | $this->keyword = $keyword; |
|
34 | |||
35 | 34 | parent::__construct($table); |
|
36 | 34 | } |
|
37 | |||
38 | /** |
||
39 | * Returns node type string |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getNodeType() |
||
47 | |||
48 | /** |
||
49 | * Returns example table keyword. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | 2 | public function getKeyword() |
|
57 | } |
||
58 |