Passed
Branch master (e1ddde)
by Michael
03:56 queued 02:21
created

LoggingConfig   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 16
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A importJSON() 0 5 1
A logPath() 0 2 1
1
<?php
2
/**
3
 * {CLASS SUMMARY}
4
 *
5
 * Date: 10/7/18
6
 * Time: 4:02 PM
7
 * @author Michael Munger <[email protected]>
8
 */
9
10
namespace HPHIO\Util;
11
12
13
class LoggingConfig
14
{
15
    public $name     = null;
16
    public $filename = null;
17
    public $enabled  = null;
18
    public $path     = null;
19
20 2
    public function importJSON($obj) {
21 2
        $this->filename = $obj->filename;
22 2
        $this->enabled  = $obj->enabled;
23 2
        $this->name     = $obj->name;
24 2
        $this->path     = $obj->path;
25 2
    }
26
27 1
    public function logPath() {
28 1
        return $this->path . "/" . $this->filename;
29
    }
30
}