Passed
Pull Request — master (#32)
by Shinji
02:22
created

Opline   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 20 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\Lib\PhpInternals\Types\Zend;
15
16
/** @psalm-immutable */
17
final class Opline
18
{
19
    public int $op1;
20
    public int $op2;
21
    public int $result;
22
    public int $extended_value;
23
    public int $lineno;
24
    public int $opcode;
25
    public int $op1_type;
26
    public int $op2_type;
27
    public int $result_type;
28
29
    public function __construct(
30
        int $op1,
31
        int $op2,
32
        int $result,
33
        int $extended_value,
34
        int $lineno,
35
        int $opcode,
36
        int $op1_type,
37
        int $op2_type,
38
        int $result_type
39
    ) {
40
        $this->op1 = $op1;
41
        $this->op2 = $op2;
42
        $this->result = $result;
43
        $this->extended_value = $extended_value;
44
        $this->lineno = $lineno;
45
        $this->opcode = $opcode;
46
        $this->op1_type = $op1_type;
47
        $this->op2_type = $op2_type;
48
        $this->result_type = $result_type;
49
    }
50
}
51