/**
  * Get defined properties for the given class or object Reflector.
  *
  * @param bool       $showAll   Include private and protected properties.
  * @param \Reflector $reflector
  *
  * @return array
  */
 protected function getProperties($showAll, \Reflector $reflector)
 {
     $properties = array();
     foreach ($reflector->getProperties() as $property) {
         if ($showAll || $property->isPublic()) {
             $properties[$property->getName()] = $property;
         }
     }
     // TODO: this should be natcasesort
     ksort($properties);
     return $properties;
 }
 /**
  * Get defined properties for the given class or object Reflector.
  *
  * @param bool       $showAll   Include private and protected properties.
  * @param \Reflector $reflector
  *
  * @return array
  */
 protected function getProperties($showAll, \Reflector $reflector)
 {
     $properties = array();
     foreach ($reflector->getProperties() as $property) {
         if ($showAll || $property->isPublic()) {
             $properties[$property->getName()] = $property;
         }
     }
     // Removed task from comment. SPV
     ksort($properties);
     return $properties;
 }