Log   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 25
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A instance() 0 3 1
A set() 0 3 1
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