4 * This file is part of the Behat Gherkin.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Gherkin\Node;
14 * Represents Gherkin Outline Example Table.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 class ExampleTableNode extends TableNode
26 * Initializes example table.
28 * @param array $table Table in form of [$rowLineNumber => [$val1, $val2, $val3]]
29 * @param string $keyword
31 public function __construct(array $table, $keyword)
33 $this->keyword = $keyword;
35 parent::__construct($table);
39 * Returns node type string
43 public function getNodeType()
45 return 'ExampleTable';
49 * Returns example table keyword.
53 public function getKeyword()
55 return $this->keyword;