src/Analyse/Callback/Analyse/Objects/PrivateProperties.php
public function callMe()
    {
        $output = $this->dispatchStartEvent();

        $refProps = array();
        /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $ref */
        $ref = $this->parameters[static::PARAM_REF];
        // We need to keep the original reference intact.
        $reflectionClass = $ref;

        // The main problem here is, that you only get the private properties of
        // the current class, but not the inherited private properties.
        // We need to get all parent classes and then poll them for private
        // properties to get the whole picture.
        do {
            $refProps = array_merge($refProps, $reflectionClass->getProperties(\ReflectionProperty::IS_PRIVATE));
            // And now for the parent class.
            $reflectionClass = $reflectionClass->getParentClass();
        } while (is_object($reflectionClass));

        if (empty($refProps) === true) {
            return $output;
        }

        usort($refProps, array($this, 'reflectionSorting'));

        return $output .
            $this->getReflectionPropertiesData(
                $refProps,
                $ref,
                'Private properties'
            );
    }
public function callMe()
    {
        $output = $this->dispatchStartEvent();

        $refProps = array();
        /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $ref */
        $ref = $this->parameters[static::PARAM_REF];
        // We need to keep the original reference intact.
        $reflectionClass = $ref;

        // The main problem here is, that you only get the private properties of
        // the current class, but not the inherited private properties.
        // We need to get all parent classes and then poll them for private
        // properties to get the whole picture.
        do {
            $refProps = array_merge($refProps, $reflectionClass->getProperties(\ReflectionProperty::IS_PRIVATE));
            // And now for the parent class.
            $reflectionClass = $reflectionClass->getParentClass();
        } while (is_object($reflectionClass));

        if (empty($refProps) === true) {
            return $output;
        }

        usort($refProps, array($this, 'reflectionSorting'));

        return $output .
            $this->getReflectionPropertiesData(
                $refProps,
                $ref,
                'Private properties'
            );
    }
public function callMe ( ) { $ output = $ this -> dispatchStartEvent ( ) ; $ refProps = array ( ) ; /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $ref */ $ ref = $ this -> parameters [ static :: PARAM_REF ] ; // We need to keep the original reference intact. $ reflectionClass = $ ref ; // The main problem here is, that you only get the private properties of // the current class, but not the inherited private properties. // We need to get all parent classes and then poll them for private // properties to get the whole picture. do { $ refProps = array_merge ( $ refProps , $ reflectionClass -> getProperties ( \ ReflectionProperty :: IS_PRIVATE ) ) ; // And now for the parent class. $ reflectionClass = $ reflectionClass -> getParentClass ( ) ; } while ( is_object ( $ reflectionClass ) ) ; if ( empty ( $ refProps ) === true ) { return $ output ; } usort ( $ refProps , array ( $ this , 'reflectionSorting' ) ) ; return $ output . $ this -> getReflectionPropertiesData ( $ refProps , $ ref , 'Private properties' ) ; }
Dumping all private properties.

@return string
The generated HTML markup
Dumping all private properties .