| 1 | <?php |
||
| 20 | class Module extends \yii\base\Module |
||
| 21 | { |
||
| 22 | public $cacheExpire = 0; |
||
| 23 | public $enableGzip = false; |
||
| 24 | protected $_components = [ |
||
| 25 | 'generator' => [ |
||
| 26 | 'class' => \assayerpro\sitemap\Sitemap::class, |
||
| 27 | ], |
||
| 28 | ]; |
||
| 29 | /** |
||
| 30 | * The namespace that controller classes are in. |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | * @access public |
||
| 34 | */ |
||
| 35 | public $controllerNamespace = 'assayerpro\sitemap\controllers'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritdoc |
||
| 39 | */ |
||
| 40 | public function init() |
||
| 47 | } |
||
| 48 |
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.