OtherObjectAccessClass   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrivateProperty() 0 4 1
A getProtectedProperty() 0 4 1
A getPublicProperty() 0 4 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