Is there a simple way to emulate friendship in php 5.3

Posted by Itay Moav on Stack Overflow See other posts from Stack Overflow or by Itay Moav
Published on 2010-05-30T13:43:57Z Indexed on 2010/05/30 13:52 UTC
Read the original article Hit count: 325

Filed under:
|
|
|

I need some classes to befriend other classes in my system. Lack of this feature made me publicize some methods which shouldn't be public. The consequences of that are that members of my team implement code in a bad and ugly way which causes a mess.

Is there a way to define a friendship in php 5.3?

(I am aware of http://bugs.php.net/bug.php?id=34044 You might want to vote there if there is no simple solution).

© Stack Overflow or respective owner

Related posts about php

Related posts about oop