Log::instance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 *      Class for logging
5
 *
6
 *      @package php_UAPAY
7
 *      @version 1.0
8
 *      @author Dmitry Shovchko <[email protected]>
9
 *
10
 */
11
12
namespace UAPAY;
13
14
use Debulog;
15
16
class Log {
17
18
    /**
19
     *      @var Debulog\LoggerInterface
20
     */
21
    protected static $_instance;
22
23
    /**
24
     *      gets the instance
25
     *
26
     *      @return Debulog\LoggerInterface
27
     */
28
    public static function instance()
29
    {
30
        return self::$_instance;
31
    }
32
33
    /**
34
     *      sets the logger instance
35
     *
36
     *      @param Debulog\LoggerInterface $log
37
     */
38
    public static function set(Debulog\LoggerInterface $log)
39
    {
40
        self::$_instance = $log;
41
    }
42
}
43