src/Analyse/Callback/Iterate/ThroughProperties.php
protected function getAdditionalData(\ReflectionProperty $refProperty, \ReflectionClass $ref)
    {
        // Now that we have the key and the value, we can analyse it.
        // Stitch together our additional info about the data:
        // public access, protected access, private access, static declaration.
        $additional = '';
        if ($refProperty->isProtected() === true) {
            $additional .= 'protected ';
        } elseif ($refProperty->isPublic() === true) {
            $additional .= 'public ';
        } elseif ($refProperty->isPrivate() === true) {
            $additional .= 'private ';
        }

        // Test if the property is inherited or not by testing the
        // declaring class
        if ($refProperty->getDeclaringClass()->getName() !== $ref->getName()) {
            // This one got inherited fom a lower level.
            $additional .= 'inherited ';
        }

        // Add the info, if this is static.
        if ($refProperty->isStatic() === true) {
            $additional .= 'static ';
        }

        return $additional;
    }
protected function getAdditionalData(\ReflectionProperty $refProperty, \ReflectionClass $ref)
    {
        // Now that we have the key and the value, we can analyse it.
        // Stitch together our additional info about the data:
        // public access, protected access, private access, static declaration.
        $additional = '';
        if ($refProperty->isProtected() === true) {
            $additional .= 'protected ';
        } elseif ($refProperty->isPublic() === true) {
            $additional .= 'public ';
        } elseif ($refProperty->isPrivate() === true) {
            $additional .= 'private ';
        }

        // Test if the property is inherited or not by testing the
        // declaring class
        if ($refProperty->getDeclaringClass()->getName() !== $ref->getName()) {
            // This one got inherited fom a lower level.
            $additional .= 'inherited ';
        }

        // Add the info, if this is static.
        if ($refProperty->isStatic() === true) {
            $additional .= 'static ';
        }

        return $additional;
    }
protected function getAdditionalData ( \ ReflectionProperty $ refProperty , \ ReflectionClass $ ref ) { // Now that we have the key and the value, we can analyse it. // Stitch together our additional info about the data: // public access, protected access, private access, static declaration. $ additional = '' ; if ( $ refProperty -> isProtected ( ) === true ) { $ additional .= 'protected ' ; } elseif ( $ refProperty -> isPublic ( ) === true ) { $ additional .= 'public ' ; } elseif ( $ refProperty -> isPrivate ( ) === true ) { $ additional .= 'private ' ; } // Test if the property is inherited or not by testing the // declaring class if ( $ refProperty -> getDeclaringClass ( ) -> getName ( ) !== $ ref -> getName ( ) ) { // This one got inherited fom a lower level. $ additional .= 'inherited ' ; } // Add the info, if this is static. if ( $ refProperty -> isStatic ( ) === true ) { $ additional .= 'static ' ; } return $ additional ; }
Adding declaration keywords to our data in the additional field.

@param \ReflectionProperty $refProperty
A reflection of the property we ara analysing.
@param \ReflectionClass $ref
A reflection of the class we are analysing.

@return string
Adding declaration keywords to our data in the additional field .