Passed
Push — master ( 5cf75b...52ecf5 )
by Nikolaos
04:27 queued 01:52
created

Php::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
/**
4
 * This file is part of the Phalcon Framework.
5
 *
6
 * (c) Phalcon Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Phalcon\Config\Adapter;
15
16
use Phalcon\Config;
17
18
class Php extends Config
19
{
20
    /**
21
     * Php constructor.
22
     *
23
     * @param string $filePath
24
     */
25
    public function __construct(string $filePath)
26
    {
27
        parent::__construct(
28
            require $filePath
29
        );
30
    }
31
}
32