Passed
Push — renovate/php-8.x ( bfb893...222c0a )
by
unknown
02:20
created

ZendValueWw   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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
use FFI\CData;
17
use FFI\PhpInternals\zend_value_ww;
18
19
class ZendValueWw
20
{
21
    public int $w1;
22
    public int $w2;
23
24
    /** @param zend_value_ww $cdata */
25
    public function __construct(
26
        private CData $cdata,
27
    ) {
28
        $this->w1 = $this->cdata->w1;
29
        $this->w2 = $this->cdata->w2;
30
    }
31
}
32