Passed
Pull Request — master (#9)
by Shinji
10:53
created

SetSettingsMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
/**
4
 * This file is part of the sj-i/php-profiler package.
5
 *
6
 * (c) sji <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace PhpProfiler\Inspector\Daemon\Reader\Message;
15
16
use PhpProfiler\Inspector\Settings\GetTraceSettings;
17
use PhpProfiler\Inspector\Settings\TargetPhpSettings;
18
use PhpProfiler\Inspector\Settings\TraceLoopSettings;
19
20
final class SetSettingsMessage
21
{
22
    public TargetPhpSettings $target_php_settings;
23
    public TraceLoopSettings $trace_loop_settings;
24
    public GetTraceSettings $get_trace_settings;
25
26
    public function __construct(
27
        TargetPhpSettings $target_php_settings,
28
        TraceLoopSettings $trace_loop_settings,
29
        GetTraceSettings $get_trace_settings
30
    ) {
31
        $this->target_php_settings = $target_php_settings;
32
        $this->trace_loop_settings = $trace_loop_settings;
33
        $this->get_trace_settings = $get_trace_settings;
34
    }
35
}
36