1
I got the following class:
class Dominio {
    private $teste;
    public function getAtributos() {
        return get_object_vars($this);
    }
}
And other classes that inherit it it(Dominio):
class ClasseQualquer extends Dominio {
    private $outro;
}
I urge the class 'Classequalquer' and call the method 'getAtributos':
$classeQualquer = new ClasseQualquer();
var_export($classeQualquer->getAtributos());
Then it returns the 'test' attribute of the 'Domain' class, but what I need is to take the attributes of the child class in the 'Classequalquer' case and take the 'other' attribute'.