Passed
Pull Request — master (#32)
by Shinji
02:28 queued 57s
created

CallFrame   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 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\PhpProcessReader;
15
16
use PhpProfiler\Lib\PhpInternals\Types\Zend\Opline;
17
18
/** @psalm-immutable */
19
final class CallFrame
20
{
21
    public string $class_name;
22
    public string $function_name;
23
    public string $file_name;
24
    public ?Opline $opline;
25
26
    public function __construct(
27
        string $class_name,
28
        string $function_name,
29
        string $file_name,
30
        ?Opline $opline
31
    ) {
32
        $this->class_name = $class_name;
33
        $this->function_name = $function_name;
34
        $this->file_name = $file_name;
35
        $this->opline = $opline;
36
    }
37
}
38