| 1 | <?php |
||
| 8 | { |
||
| 9 | public static function createFromName($name) |
||
| 16 | |||
| 17 | public function getReagent() |
||
| 18 | { |
||
| 19 | if ($this->getOriginal('pivot_reagent_type', null)) { |
||
| 20 | return forward_static_call( |
||
| 21 | [$this->getOriginal('pivot_reagent_type'), 'find'], |
||
| 22 | $this->getOriginal('pivot_reagent_id') |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | return null; |
||
| 27 | } |
||
| 29 |
Since your code implements the magic setter
_set, this function will be called for any write access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.