/** * Returns all constants from all namespaces. * * @return array */ public function getConstants() { $generator = $this->generator; return array_map(function (IReflectionConstant $constant) use($generator) { return new Reflection\ReflectionConstant($constant, $generator); }, parent::getConstants()); }
/** * @return ReflectionConstant[] */ public function getConstants() { return array_map(function (IReflectionConstant $constant) { return $this->reflectionFactory->createFromReflection($constant); }, parent::getConstants()); }