Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
LogOptions | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||
__construct | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Log; |
6 | |
7 | use PeServer\Core\Collection\Arr; |
8 | use PeServer\Core\Log\ILogger; |
9 | |
10 | /** |
11 | * ロガー生成時にコンストラクタに渡される設定値等。 |
12 | */ |
13 | class LogOptions |
14 | { |
15 | /** |
16 | * 生成。 |
17 | * |
18 | * @param non-empty-string $header |
19 | * @param int $baseTraceIndex |
20 | * @phpstan-param non-negative-int $baseTraceIndex |
21 | * @param int $level |
22 | * @phpstan-param ILogger::LOG_LEVEL_* $level |
23 | * @param string $format |
24 | * @phpstan-param literal-string $format |
25 | * @param array<string,mixed> $configuration |
26 | * @codeCoverageIgnore |
27 | */ |
28 | public function __construct( |
29 | public string $header, |
30 | public int $baseTraceIndex, |
31 | public int $level, |
32 | public string $format, |
33 | public array $configuration = [] |
34 | ) { |
35 | } |
36 | } |