Battle Of Definition

../_images/battle_of_definitions.png

Methods signatures must be compatible with the parent class’s definition. This is true, except for __construct(), for which the compatibility is never checked.

Yet, compatibility is still enforced when the __construct() definition is in an interface. Then, both the implementing table and all its children must have the interface’s compatibility.

See Also

PHP Features