vendredi 12 août 2016

Does static class extends another class?

I have a static class

class A {
    static function doMagic() { // magic }
}

Class B extends A:

class B extends A {

}

How can I check using php api what B is subclass of A? Something like:

if(B is_subclass_of A) {
    // tada
}





Aucun commentaire:

Enregistrer un commentaire