Passed
Pull Request — master (#31)
by Shinji
04:07 queued 02:36
created

SetSettingsMessage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 8
rs 10
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\Protocol\Message;
15
16
use PhpProfiler\Inspector\Settings\GetTraceSettings\GetTraceSettings;
17
use PhpProfiler\Inspector\Settings\TargetPhpSettings\TargetPhpSettings;
18
use PhpProfiler\Inspector\Settings\TraceLoopSettings\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