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

SplFileInfo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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