PHP implentation of EventTarget class to add an events system in your code.