FakeLogger   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A append() 0 2 1
A getLog() 0 4 1
1
<?php
2
3
namespace Smoren\EventRouter\Loggers;
4
5
use Smoren\EventRouter\Interfaces\EventInterface;
6
use Smoren\EventRouter\Interfaces\LoggerInterface;
7
8
/**
9
 * FakeLogger class
10
 */
11
class FakeLogger implements LoggerInterface
12
{
13
    /**
14
     * {@inheritDoc}
15
     */
16 1
    public function append(EventInterface $event): void
17
    {
18 1
    }
19
20
    /**
21
     * {@inheritDoc}
22
     */
23 1
    public function getLog(): array
24
    {
25 1
        error_log(static::class.'::getLog() always returns empty array');
26 1
        return [];
27
    }
28
}
29