Security update for permissions_by_term
[yaffs-website] / vendor / behat / gherkin / src / Behat / Gherkin / Node / ExampleTableNode.php
1 <?php
2
3 /*
4  * This file is part of the Behat Gherkin.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Gherkin\Node;
12
13 /**
14  * Represents Gherkin Outline Example Table.
15  *
16  * @author Konstantin Kudryashov <ever.zet@gmail.com>
17  */
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     public function __construct(array $table, $keyword)
32     {
33         $this->keyword = $keyword;
34
35         parent::__construct($table);
36     }
37
38     /**
39      * Returns node type string
40      *
41      * @return string
42      */
43     public function getNodeType()
44     {
45         return 'ExampleTable';
46     }
47
48     /**
49      * Returns example table keyword.
50      *
51      * @return string
52      */
53     public function getKeyword()
54     {
55         return $this->keyword;
56     }
57 }