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

AbstractLogger::error()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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