Test Failed
Push — main ( ace48b...917e6f )
by Chema
23:03 queued 20:04
created

FileLogger::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

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