Fixes #7 - make declaration of some methods compatible with Yii