Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * @return ReflectionConstant[]
  */
 public function getConstants()
 {
     return array_map(function (IReflectionConstant $constant) {
         return $this->reflectionFactory->createFromReflection($constant);
     }, parent::getConstants());
 }