Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
38 | 1 | public function createComponentSettingsForm() |
|
39 | { |
||
40 | 1 | $settings = array(); |
|
41 | |||
42 | 1 | $settings[] = $this->settings->get('Deploy script', 'deployModule', 'text', array()); |
|
43 | 1 | $settings[] = $this->settings->get('Deploy database script', 'deployModule', 'text', array()); |
|
44 | |||
45 | 1 | return $this->createSettingsForm($settings); |
|
46 | } |
||
47 | |||
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.