| 1 | <?php |
||
| 9 | class BlogCategory extends Entity |
||
| 10 | { |
||
| 11 | |||
| 12 | use AppTranslateTrait; |
||
| 13 | use TranslateTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Fields that can be mass assigned using newEntity() or patchEntity(). |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $_accessible = [ |
||
| 21 | '*' => true, |
||
| 22 | 'id' => false, |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get the number of articles formatted. |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | protected function _getArticleCountFormat() |
||
| 34 | } |
||
| 35 |
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.