is_friendly() is_friendly() : void Test if the current class is in the list of friend classes. Throws an exception on failure.
add_friend() add_friend(string $classname) Add a class to this classes list of friends. Typically this method is called from this classes constructor. $this->add_friend('otherclass'); Parameters string $classname The class to add as a friend.