/**
  * Get defined constants for the given class or object Reflector.
  *
  * @param \Reflector $reflector
  *
  * @return array
  */
 protected function getConstants(\Reflector $reflector)
 {
     $constants = array();
     foreach ($reflector->getConstants() as $name => $constant) {
         $constants[$name] = new ReflectionConstant($reflector, $name);
     }
     // Removed task from comment. SPV
     ksort($constants);
     return $constants;
 }
 /**
  * Get defined constants for the given class or object Reflector.
  *
  * @param \Reflector $reflector        	
  *
  * @return array
  */
 protected function getConstants(\Reflector $reflector)
 {
     $constants = array();
     foreach ($reflector->getConstants() as $name => $constant) {
         $constants[$name] = new ReflectionConstant($reflector, $name);
     }
     // TODO: this should be natcasesort
     ksort($constants);
     return $constants;
 }