I\'d like to create an interface for entities that are CRUDable (can be saved and deleted). Here is my abstract class:
abstract class AbstractCrudableEntity
Overriding constructors is a special case:
Unlike with other methods, PHP will not generate an
E_STRICT
level error message when__construct()
is overridden with different parameters than the parent__construct()
method has.
You can not do that with other methods.
Your child methods must have the same number of parameters as the abstract methods in an abstract parent class.
The constructor in you example is not abstract--the child is just overriding it.