Test Failed
Branch main (917e6f)
by Chema
25:55 queued 22:47
created

FileLogger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 10
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A log() 0 2 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Fake;
6
7
final class FileLogger implements LoggerInterface
8
{
9
    public function __construct(
10
        public string $filename,
11
        public bool $append = true,
12
    ) {
13
    }
14
15
    public function log(string $message): void
16
    {
17
        // Implementation not needed for tests
18
    }
19
}
20