Dinkar - 2:03 pm on Oct 24, 2012 (gmt 0)
What exactly you are willing to use ... OOP or classes?
FYI, currently you are using classes and NOT OOP. Just creating classes and (programming) object is not REAL OOP.
Concept of Object-oriented programming is to emulate a real object. Here TEAM is your main object. So you should try to emulate it with it's characteristics and functionalities (operations).
Event should be part of the TEAM object. So it should be something like:-
Now this TEAM object can be a home team, away team, or city/country wise (US, UK etc) team, or sports wise team (football, cricket etc). Team event should be a part of that TEAM.
PS: If you are writing a public function to access a variable (in your case: $idTeam), you should declare that variable as private. If it's public then why do you need any function to access it?