1 | <?php |
||
12 | final class LazyPropertyMapBench |
||
13 | { |
||
14 | /** |
||
15 | * @var callable |
||
16 | */ |
||
17 | private $initializer; |
||
18 | |||
19 | /** |
||
20 | * LazyPropertyMap |
||
21 | */ |
||
22 | private $lazyMap; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private $array; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $currentKey = 0; |
||
33 | |||
34 | public function init() : void |
||
46 | |||
47 | public function benchInitializedPropertyAccess() : stdClass |
||
53 | |||
54 | public function benchInitializedArrayKeyAccess() : stdClass |
||
60 | |||
61 | public function benchUninitializedPropertyAccess() : stdClass |
||
67 | |||
68 | public function benchUninitializedArrayAccess() : stdClass |
||
74 | } |
||
75 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.