I want to see if anyone has a better design for a class (class as in OOP) I am writing. We have a script that puts shared folder stats in an csv file. I am reading that in and putting it in a Share class.
My Boss wants to know information like:
- Total Number of Files
- Total Size of Files
- Number of Office Files
- Size of Office Files
- Number of Exe Files
- Size of Exe Files
- etc ....
So I have a class with variables like $numOfficeFiles and $sizeOfficeFiles etc. with a ton of get/set methods. Isn't there a better way to do this? What is the general rule if you have a class with a lot of variables/properties?
I think of this as a language agnostic question but if it matters, I am using PHP.