i have following problem. I have child class which contains only constants. I have variable constants in parent class. I need get constants as variable in parent class. I try
$onClass = new ReflectionClass(__CLASS__);
$this->constants = $onClass->getConstants();
But this behaves only if I call this in child constructor. I need call this in parent construnctor. Is there any possibilites how to do this?
Thanks a lot