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

PhanJsonLoader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 12
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

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