| 1 | <?php |
||
| 11 | class ProfileController extends BaseController |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Initialize. |
||
| 15 | * Set validateComponent and additionFields. |
||
| 16 | */ |
||
| 17 | public function init() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns addition fields. |
||
| 28 | * |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | protected function getAdditionFields(): array |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns identityClass model name. |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | protected function getModelName(): string |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Returns identityClass Search model name. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | protected function getSearchModelName(): string |
||
| 61 | } |
||
| 62 |
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.