| 1 | <?php |
||
| 19 | class ProfileValidateComponent extends BaseValidateComponent implements ValidateComponentInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Set a user model for ProfileValidateComponent validation model. |
||
| 23 | * |
||
| 24 | * @param Model $model |
||
| 25 | * |
||
| 26 | * @throws InvalidConfigException |
||
| 27 | * |
||
| 28 | * @return ModelInterface |
||
| 29 | */ |
||
| 30 | public function setModel(Model $model): ModelInterface |
||
| 41 | } |
||
| 42 |
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.