| 1 | <?php |
||
| 7 | class Widgets extends Entitizer\Utils\Listview { |
||
| 8 | |||
| 9 | use Entitizer\Common\Widget; |
||
| 10 | |||
| 11 | # Listview configuration |
||
| 12 | |||
| 13 | protected static $lister = 'Modules\Entitizer\Lister\Widgets'; |
||
| 14 | |||
| 15 | protected static $link = '/admin/content/widgets'; |
||
| 16 | |||
| 17 | protected static $naming = 'title'; |
||
| 18 | |||
| 19 | protected static $display = CONFIG_ADMIN_WIDGETS_DISPLAY; |
||
| 20 | |||
| 21 | protected static $view_main = 'Blocks\Entitizer\Widgets\Listview\Main'; |
||
| 22 | |||
| 23 | protected static $view_item = 'Blocks\Entitizer\Widgets\Listview\Item'; |
||
| 24 | |||
| 25 | protected static $view_ajax_main = ''; |
||
| 26 | |||
| 27 | protected static $view_ajax_item = ''; |
||
| 28 | |||
| 29 | # Add additional data for specific entity |
||
| 30 | |||
| 31 | protected function processEntity() {} |
||
| 32 | |||
| 33 | # Add item additional data |
||
| 34 | |||
| 35 | protected function processItem(Template\Asset\Block $view, Entitizer\Entity\Widget $widget) { |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
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.