StubLogger   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A add() 0 1 1
A error() 0 1 1
A debug() 0 1 1
A sync() 0 1 1
1
<?php
2
3
/**
4
 *      Stub class for logging
5
 *
6
 *      @package debulog
7
 *      @version 1.0
8
 *      @author Dmitry Shovchko <[email protected]>
9
 *
10
 */
11
12
namespace Debulog;
13
14
class StubLogger extends Logger
15
{
16
    /**
17
     *      Add message to logger buffer
18
     *
19
     *      @param string $message Message text
20
     *
21
     */
22
    public function add($message){}
23
24
    /**
25
     *      Add error message to logger buffer
26
     *
27
     *      @param string $message Message text
28
     *
29
     */
30
    public function error($message){}
31
32
    /**
33
     *      Add debug message to logger buffer
34
     *
35
     *      @param string $message Message to log
36
     *
37
     */
38
    public function debug($message){}
39
40
    /**
41
     *      Sync all buffers to files
42
     *
43
     */
44
    public function sync(){}
45
}
46