Passed
Push — master ( c7771a...f82578 )
by Radu
02:19
created

AbstractLogger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

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