Completed
Pull Request — 2.x (#402)
by
unknown
02:06
created

SplFileInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
/*
4
 * Go! AOP framework
5
 *
6
 * @copyright Copyright 2015, Lisachenko Alexander <[email protected]>
7
 *
8
 * This source file is subject to the license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Go\Instrument\FileSystem;
13
14
use SplFileInfo as CoreSplFileInfo;
15
16
/**
17
 *
18
 */
19
final class SplFileInfo extends CoreSplFileInfo
20
{
21
22
    /**
23
     * @param string $file_name
24
     */
25
    public function __construct($file_name)
26
    {
27
        $file_name = str_replace(DIRECTORY_SEPARATOR, '/', $file_name);
28
29
        parent::__construct($file_name);
30
    }
31
}
32