protected function getProperties($showAll, \Reflector $reflector, $noInherit = false)
    {
        $className = $reflector->getName();

        $properties = [];
        foreach ($reflector->getProperties() as $property) {
            if ($noInherit && $property->getDeclaringClass()->getName() !== $className) {
                continue;
            }

            if ($showAll || $property->isPublic()) {
                $properties[$property->getName()] = $property;
            }
        }

        \ksort($properties, SORT_NATURAL | SORT_FLAG_CASE);

        return $properties;
    }
protected function getProperties($showAll, \Reflector $reflector, $noInherit = false)
    {
        $className = $reflector->getName();

        $properties = [];
        foreach ($reflector->getProperties() as $property) {
            if ($noInherit && $property->getDeclaringClass()->getName() !== $className) {
                continue;
            }

            if ($showAll || $property->isPublic()) {
                $properties[$property->getName()] = $property;
            }
        }

        \ksort($properties, SORT_NATURAL | SORT_FLAG_CASE);

        return $properties;
    }
protected function getProperties ( $ showAll , \ Reflector $ reflector , $ noInherit = false ) { $ className = $ reflector -> getName ( ) ; $ properties = [ ] ; foreach ( $ reflector -> getProperties ( ) as $ property ) { if ( $ noInherit && $ property -> getDeclaringClass ( ) -> getName ( ) !== $ className ) { continue ; } if ( $ showAll || $ property -> isPublic ( ) ) { $ properties [ $ property -> getName ( ) ] = $ property ; } } \ ksort ( $ properties , SORT_NATURAL | SORT_FLAG_CASE ) ; return $ properties ; }
Get defined properties for the given class or object Reflector.

@param bool       $showAll   Include private and protected properties
@param \Reflector $reflector
@param bool       $noInherit Exclude inherited properties

@return array
Get defined properties for the given class or object Reflector .