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

TargetRegexMessage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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\Searcher\Protocol\Message;
15
16
final class TargetRegexMessage
17
{
18
    public string $regex;
19
20
    /**
21
     * TargetRegexMessage constructor.
22
     * @param string $regex
23
     */
24
    public function __construct(string $regex)
25
    {
26
        $this->regex = $regex;
27
    }
28
}
29