ZendClassEntryMemoryLocation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromZendClassEntry() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of the reliforp/reli-prof 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 Reli\Lib\PhpProcessReader\PhpMemoryReader\MemoryLocation;
15
16
use Reli\Lib\PhpInternals\Types\Zend\ZendClassEntry;
17
use Reli\Lib\Process\MemoryLocation;
18
19
class ZendClassEntryMemoryLocation extends MemoryLocation
20
{
21
    public static function fromZendClassEntry(
22
        ZendClassEntry $zend_class_entry
23
    ): self {
24
        return new self(
25
            $zend_class_entry->getPointer()->address,
26
            $zend_class_entry->getPointer()->size
27
        );
28
    }
29
}
30