PHP OOP Concepts (Value Objects / Data Access Objects)
Posted
by Iuhiz
on Stack Overflow
See other posts from Stack Overflow
or by Iuhiz
Published on 2010-04-29T13:30:05Z
Indexed on
2010/04/29
13:47 UTC
Read the original article
Hit count: 552
Hi,
I've just started to learn PHP OOP, previously I have been doing PHP in a procedural manner. I was reading this article and I've got a couple of quick questions,
How is the constructor for value objects commonly defined? As one that takes in all "data members" as parameters or stick to the default constructor and use mutator / accessor methods to set / get data members?
Is this actually the recommended way to start doing PHP OOP? Cos honestly, the concepts explained in the article was a tad confusing for me.
Cheers
© Stack Overflow or respective owner