if you just want to make the IDE happy, you should simply add the phpdoc on the property