I'm writing a conversion of a Palm PDA timesheet application, but I am new to OO in php5
I have started the basics by writting a task class (used to define a task to which time is recorded against). It contains properties such as taskName, taskStartDate, taskEndDate & description. I have several methods for adding a task, calculating rates/totals, etc...
The main problem that I'm trying to understand is...
I want to be able to add multiple notes to a task, e.g. developer comments, which can be added/edited/deleted at any time.
How would you recommend I add this to the class? As a string array, where each note in the array is looped when written to the DB? Or create a separate note class?
TIA
Dave