Added support for PHP '$this' variable in methods