ANTLR is more or less irrelevant to your problem.
A class in PHP is basically a map from strings to attributes. Each attribute can be open, closed, protected. Each attribute also contains a value, which can be a static variable or method. Methods are functions that (in PHP) take an implicit $ this parameter. So you can think of the class as basically a fancy array object in PHP.
When you create an object, you point it to a pointer to your object in the PHP class. When you call a method on this object, you are viewing the method through an object of the class that you get through this pointer.
, .