OtherObjectAccessClass::getPrivateProperty()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManagerTestAsset;
6
7
/**
8
 * Class used to verify that accessing protected scope of other objects still triggers lazy loading/interception
9
 */
10
class OtherObjectAccessClass
11
{
12
    private $privateProperty = 'privateProperty';
13
14
    protected $protectedProperty = 'protectedProperty';
15
16
    public $publicProperty = 'publicProperty';
17
18
    public function getPrivateProperty(self $other) : string
19
    {
20
        return $other->privateProperty;
21
    }
22
23
    public function getProtectedProperty(self $other) : string
24
    {
25
        return $other->protectedProperty;
26
    }
27
28
    public function getPublicProperty(self $other) : string
29
    {
30
        return $other->publicProperty;
31
    }
32
}
33