FakeLogger::getLog()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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