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