Skip to content
Advertisement

Tag: abstract

PHP Interface: Specify ANY visibility

I’m making use of an interface for a set of classes. I have a problem however because I wish for any visibility to be allowed in the interface (That is: public, protected and private). I need the parent method to only be protected and I need the child method to be private, but I get the error saying Fatal error:

Advertisement