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

        /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $ref */
        $ref = $this->parameters[static::PARAM_REF];
        $data = $ref->getData();

        $refProps = $ref->getProperties(\ReflectionProperty::IS_PUBLIC);
        $publicProps = array();

        // Adding undeclared public properties to the dump.
        // Those are properties which are not visible with
        // ReflectionProperty::IS_PUBLIC
        // but are in get_object_vars
        //
        // 1. Make a list of all properties
        // 2. Remove those that are listed in
        // ReflectionProperty::IS_PUBLIC
        //
        // What is left are those special properties that were dynamically
        // set during runtime, but were not declared in the class.
        foreach ($refProps as $refProp) {
            $publicProps[$refProp->name] = true;
        }

        // For every not-declared property, we add a another reflection.
        // Those are simply added during runtime
        foreach (array_keys(array_diff_key(get_object_vars($data), $publicProps)) as $key) {
            $refProps[] = new UndeclaredProperty($ref, $key);
        }

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

        usort($refProps, array($this, 'reflectionSorting'));
        // Adding a HR to reflect that the following stuff are not public
        // properties anymore.
        return $output .
            $this->getReflectionPropertiesData($refProps, $ref) .
            $this->pool->render->renderSingeChildHr();
    }
public function callMe()
    {
        $output = $this->dispatchStartEvent();

        /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $ref */
        $ref = $this->parameters[static::PARAM_REF];
        $data = $ref->getData();

        $refProps = $ref->getProperties(\ReflectionProperty::IS_PUBLIC);
        $publicProps = array();

        // Adding undeclared public properties to the dump.
        // Those are properties which are not visible with
        // ReflectionProperty::IS_PUBLIC
        // but are in get_object_vars
        //
        // 1. Make a list of all properties
        // 2. Remove those that are listed in
        // ReflectionProperty::IS_PUBLIC
        //
        // What is left are those special properties that were dynamically
        // set during runtime, but were not declared in the class.
        foreach ($refProps as $refProp) {
            $publicProps[$refProp->name] = true;
        }

        // For every not-declared property, we add a another reflection.
        // Those are simply added during runtime
        foreach (array_keys(array_diff_key(get_object_vars($data), $publicProps)) as $key) {
            $refProps[] = new UndeclaredProperty($ref, $key);
        }

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

        usort($refProps, array($this, 'reflectionSorting'));
        // Adding a HR to reflect that the following stuff are not public
        // properties anymore.
        return $output .
            $this->getReflectionPropertiesData($refProps, $ref) .
            $this->pool->render->renderSingeChildHr();
    }
public function callMe ( ) { $ output = $ this -> dispatchStartEvent ( ) ; /** @var \Brainworxx\Krexx\Service\Reflection\ReflectionClass $ref */ $ ref = $ this -> parameters [ static :: PARAM_REF ] ; $ data = $ ref -> getData ( ) ; $ refProps = $ ref -> getProperties ( \ ReflectionProperty :: IS_PUBLIC ) ; $ publicProps = array ( ) ; // Adding undeclared public properties to the dump. // Those are properties which are not visible with // ReflectionProperty::IS_PUBLIC // but are in get_object_vars // // 1. Make a list of all properties // 2. Remove those that are listed in // ReflectionProperty::IS_PUBLIC // // What is left are those special properties that were dynamically // set during runtime, but were not declared in the class. foreach ( $ refProps as $ refProp ) { $ publicProps [ $ refProp -> name ] = true ; } // For every not-declared property, we add a another reflection. // Those are simply added during runtime foreach ( array_keys ( array_diff_key ( get_object_vars ( $ data ) , $ publicProps ) ) as $ key ) { $ refProps [ ] = new UndeclaredProperty ( $ ref , $ key ) ; } if ( empty ( $ refProps ) === true ) { return $ output ; } usort ( $ refProps , array ( $ this , 'reflectionSorting' ) ) ; // Adding a HR to reflect that the following stuff are not public // properties anymore. return $ output . $ this -> getReflectionPropertiesData ( $ refProps , $ ref ) . $ this -> pool -> render -> renderSingeChildHr ( ) ; }
Dump all public properties.

@throws \ReflectionException

@return string
The generated HTML markup.
Dump all public properties .