Fixes #7 - makes declaration of some methods compatible with Yii.
Merge pull request #8 from eg/master

Fix for #7 issue