Passed
Branch master (6aefea)
by litefeel
09:35
created

Writing_On_GitHub_File_Info   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
4
/**
5
 *
6
 */
7
class Writing_On_GitHub_File_Info {
8
9 3
    public function __construct( stdClass $data ) {
10 3
        $this->sha          = $data->sha;
11 3
        $this->path         = $data->path;
12 3
        $this->status       = $data->status;
13 3
    }
14
15
    public $sha;
16
    public $path;
17
    public $status;  // added removed modified
18
}
19