| 1 | <?php |
||
| 11 | class Article extends ModuleModel |
||
| 12 | { |
||
| 13 | use HasSlug; |
||
| 14 | |||
| 15 | protected $with = ['media']; |
||
| 16 | |||
| 17 | public $mediaLibraryCollections = ['images', 'downloads']; |
||
| 18 | public $translatable = ['name', 'text', 'url']; |
||
| 19 | |||
| 20 | public static function findByTechnicalName(string $technicalName): Article |
||
| 35 | |||
| 36 | public static function getWithTechnicalNameLike(string $technicalName): Collection |
||
| 47 | |||
| 48 | public function isDeletable(): bool |
||
| 52 | } |
||
| 53 |
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.