Fixed to work with HHVM

From my understanding, HHVM doesn't support `self` to be used for function argument type hinting; therefore it keeps giving parser error. So, changing self to the actual class name solves the problem. Also, if anyone still has a problem with using it because of Doctrine errors, use the dev-master branch as the type hintings have become compatible with the HHVM.