Passed
Push — master ( fc83aa...c68055 )
by Radu
01:36
created

AbstractLogger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A debug() 0 3 1
A error() 0 3 1
1
<?php
2
namespace WebServCo\Framework\Log;
3
4
abstract class AbstractLogger
5
{
6
    abstract public function clear();
7
8
    abstract public function log($level, $message, $context = []);
9
10
    public function debug($message, $context = [])
11
    {
12
        return $this->log(LogLevel::DEBUG, $message, $context);
13
    }
14
15
    public function error($message, $context = [])
16
    {
17
        return $this->log(LogLevel::ERROR, $message, $context);
18
    }
19
}
20