Code Duplication    Length = 7-8 lines in 2 locations

src/Behat/Gherkin/Node/BackgroundNode.php 1 location

@@ 45-51 (lines=7) @@
42
     * @param string      $keyword
43
     * @param integer     $line
44
     */
45
    public function __construct($title, array $steps, $keyword, $line)
46
    {
47
        $this->title = $title;
48
        $this->steps = $steps;
49
        $this->keyword = $keyword;
50
        $this->line = $line;
51
    }
52
53
    /**
54
     * Returns node type string

src/Behat/Gherkin/Node/ScenarioNode.php 1 location

@@ 50-57 (lines=8) @@
47
     * @param string      $keyword
48
     * @param integer     $line
49
     */
50
    public function __construct($title, array $tags, array $steps, $keyword, $line)
51
    {
52
        $this->title = $title;
53
        $this->tags = $tags;
54
        $this->steps = $steps;
55
        $this->keyword = $keyword;
56
        $this->line = $line;
57
    }
58
59
    /**
60
     * Returns node type string