Log::instance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 *      Singleton class for logging
5
 *
6
 *      @package php_EasyPay
7
 *      @version 1.1
8
 *      @author Dmitry Shovchko <[email protected]>
9
 *
10
 */
11
12
namespace EasyPay;
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