PHP recommends making accessor/mutator functions available in a java style manner. This means that you will have to use $myObjects->getMyProperty(); every time you need to. To improve readability and make us type a bit less, you’d obviously just want to use $myObjects->myProperty.
The following code makes this possible by using PHP’s magic functions
-
Articles
-
Meta

