| 1 | <?php |
||
| 5 | class Callback extends \Psecio\Invoke\MatchInstance |
||
| 6 | { |
||
| 7 | protected $error = 'Failure returned from callback :data'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Execute the provided callback |
||
| 11 | * |
||
| 12 | * @param \Psecio\Invoke\Data $data Data object instance |
||
| 13 | * @return boolean Result of evaluation |
||
| 14 | */ |
||
| 15 | public function evaluate($data) |
||
| 26 | } |
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.