PHP
I am using an class which extends an Abstract class, which in turn implements an interface. The class will need to have a constant, call it NAME, defined for every class that extends the Abstract class.
How can I force the class to define a constant "NAME"?
Abstract classes can have a constant called name, but the implementing class would not be forced to override it.
The interface can have a constant, but interfaces can not have their constants overridden.
Is there ant way to do what I am trying to do?
Thanks