Skip to main content

All Questions

6 votes
3 answers
5k views

How to prevent usage of public parent methods in child instance in PHP?

So let's say I have classes called parent and child, which will be then used from PHP file called caller.php class Child extends Parent { } class Parent { public function parentMethod(){ }...
Firze's user avatar
  • 4,019
0 votes
1 answer
233 views

doctrine2 and codeigniter2, right approach for parent class to interact with child properties

I'm searching for this for quite some time now. I saw few similar questions but not sure if they apply with doctrine2 and this problem. I'm trying to get started with CodeIgniter2 and Doctrine2, and I'...
Dalibor's user avatar
  • 167