Passed
Push — master ( f6e659...bb9ac5 )
by Patrick
04:00
created

LogFacade   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 9
rs 10
ccs 0
cts 5
cp 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A error() 0 3 1
A info() 0 3 1
1
<?php
2
3
namespace ForecastAutomation\Log;
4
5
use ForecastAutomation\Kernel\AbstractFacade;
6
use Throwable;
7
8
/**
9
 * @method \ForecastAutomation\Log\LogFactory getFactory()
10
 */
11
class LogFacade extends AbstractFacade
12
{
13
    public function error(string $message, Throwable $e = null): void
14
    {
15
        $this->getFactory()->createLogger()->error($message, $e);
16
    }
17
    public function info(string $message, array $context = []): void
18
    {
19
        $this->getFactory()->createLogger()->info($message, $context);
20
    }
21
}
22