Completed
Push — master ( 26056a...749be1 )
by Christophe
03:21 queued 10s
created

CachedArrayKeywords::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Behat Gherkin.
5
 * (c) Konstantin Kudryashov <[email protected]>
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\Keywords;
12
13
/**
14
 * File initializable keywords holder.
15
 *
16
 * $keywords = new Behat\Gherkin\Keywords\CachedArrayKeywords($file);
17
 *
18
 * @author Konstantin Kudryashov <[email protected]>
19
 */
20
class CachedArrayKeywords extends ArrayKeywords
21
{
22
    /**
23
     * Initializes holder with file.
24
     *
25
     * @param string $file Cached array path
26
     */
27 127
    public function __construct($file)
28
    {
29 127
        parent::__construct(include($file));
30 127
    }
31
}
32