1 | <?php |
||
15 | class SettingsPresenter extends BasePresenter |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | 1 | protected function startup() |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 1 | protected function beforeRender() |
|
32 | |||
33 | /** |
||
34 | * Creates settings form component. |
||
35 | * |
||
36 | * @return \Nette\Application\UI\Form |
||
37 | */ |
||
38 | 1 | public function createComponentSettingsForm() |
|
47 | |||
48 | /** |
||
49 | * Renders default template. |
||
50 | * |
||
51 | * @param int $idPage Id of the page. |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | 1 | public function renderDefault($idPage) |
|
61 | } |
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@property
annotation 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.