Funkcia pre kontrolu dedičnosti triedy v OOP v PHP
Vytvorte triedu ChildClass, ktorá dedí
od ParentClass, ktorý zase
dedí od GrandParentClass.
Pomocou funkcie is_subclass_of skontrolujte,
či je trieda ChildClass potomkom
GrandParentClass.
Pomocou funkcie is_subclass_of skontrolujte,
či je trieda ParentClass potomkom
GrandParentClass.
Pomocou funkcie is_subclass_of skontrolujte,
či je trieda ChildClass potomkom
ParentClass.