In PHP, unlike Java or C++, $this has to be explicitly used to refer to variables within a class.
The value of $this is determined by the context in which it is called. In certain situations $this may actually refer to the invoking class rather then the current class. This breaks object encapsulation.