| 1 | <?php |
||
| 5 | class VendorController extends SiteController |
||
| 6 | { |
||
| 7 | |||
| 8 | public static $allowed_actions = array( |
||
| 9 | 'index' |
||
| 10 | ); |
||
| 11 | |||
| 12 | protected $parent; |
||
| 13 | protected $vendor; |
||
| 14 | |||
| 15 | public function __construct(Controller $parent, AddonVendor $vendor) |
||
| 22 | |||
| 23 | public function index() |
||
| 27 | |||
| 28 | public function Title() |
||
| 32 | |||
| 33 | public function Vendor() |
||
| 37 | |||
| 38 | public function Addons() |
||
| 45 | } |
||
| 46 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.