public function __construct() { $reflection = new \ReflectionClass($this); $this->_enums = $reflection->getConstants(); }