Passed
Push — master ( 7095d4...e1ddde )
by Michael
02:39
created

LoggingConfig::logPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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
}