| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function createComponentSettingsForm() |
||
| 31 | { |
||
| 32 | $settings = array(); |
||
| 33 | |||
| 34 | $settings[] = $this->settings->get('Form Subject', 'InvestformModule', 'text'); |
||
| 35 | $settings[] = $this->settings->get('Form Email body', 'InvestformModule', 'textarea'); |
||
| 36 | $settings[] = $this->settings->get('Contract Subject', 'InvestformModule', 'text'); |
||
| 37 | $settings[] = $this->settings->get('Contract Email body', 'InvestformModule', 'textarea'); |
||
| 38 | $settings[] = $this->settings->get('Notification subject', 'InvestformModule', 'text'); |
||
| 39 | $settings[] = $this->settings->get('Notification body', 'InvestformModule', 'textarea'); |
||
| 40 | $settings[] = $this->settings->get('Businessman password', 'InvestformModule', 'text'); |
||
| 41 | |||
| 42 | return $this->createSettingsForm($settings); |
||
| 43 | } |
||
| 44 | |||
| 51 | } |
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.