I like having my Objects very polyvalent. I code functions that I don't even use in the main purpose program, just in case my program get more complex. My classes hence get quickly large in height of lines. But what about the performance ? I have no idea how php treats my files. Let's say i have 30 functions in my class, when an Object is instanciated from that class just for the use of 1 function in it, how is the whole code handled ? is all the logic loaded in the memory ? or does PHP anticipate and only build the used functions and data ?
In other words, is it okay to have very large files ?