Completed
Push — master ( 766b61...6c8406 )
by Scott
15s
created

PhanJsonLoader::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
namespace exussum12\CoverageChecker;
3
4
/**
5
 * Class PhanJsonLoader
6
 * Used for parsing phan json output
7
 * @package exussum12\CoverageChecker
8
 */
9
class PhanJsonLoader extends CodeClimateLoader
10
{
11
    public function __construct($file)
12
    {
13
        $this->file = json_decode(file_get_contents($file));
14
    }
15
16
    public static function getDescription()
17
    {
18
        return 'Parses phan (static analysis) in json format';
19
    }
20
}
21