Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
90 | public function generateProps() |
||
91 | { |
||
92 | return [ |
||
93 | 'thumbnail' => $this->thumbnail(), |
||
94 | 'small' => $this->small(), |
||
95 | 'medium' => $this->medium(), |
||
96 | 'full' => $this->full(), |
||
97 | 'name' => $this->name, |
||
1 ignored issue
–
show
|
|||
98 | 'caption' => $this->caption, |
||
1 ignored issue
–
show
|
|||
99 | 'alt' => $this->alt, |
||
1 ignored issue
–
show
|
|||
100 | 'id' => $this->id, |
||
1 ignored issue
–
show
|
|||
101 | ]; |
||
102 | } |
||
103 | } |
||
104 |
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.