src/Analyse/Callback/Iterate/ThroughGetter.php
protected function preparePropertyName(\ReflectionMethod $reflectionMethod)
    {
        $currentPrefix = $this->parameters[static::CURRENT_PREFIX];

         // Get the name and remove the 'get' . . .
        $getterName = $reflectionMethod->getName();
        if (strpos($getterName, $currentPrefix) === 0) {
            return lcfirst(substr($getterName, strlen($currentPrefix)));
        }

        // . . .  or the '_get'.
        if (strpos($getterName, '_' . $currentPrefix) === 0) {
            return lcfirst(substr($getterName, strlen($currentPrefix) + 1));
        }

        // Still here?!? At least make the first letter lowercase.
        return lcfirst($getterName);
    }
protected function preparePropertyName(\ReflectionMethod $reflectionMethod)
    {
        $currentPrefix = $this->parameters[static::CURRENT_PREFIX];

         // Get the name and remove the 'get' . . .
        $getterName = $reflectionMethod->getName();
        if (strpos($getterName, $currentPrefix) === 0) {
            return lcfirst(substr($getterName, strlen($currentPrefix)));
        }

        // . . .  or the '_get'.
        if (strpos($getterName, '_' . $currentPrefix) === 0) {
            return lcfirst(substr($getterName, strlen($currentPrefix) + 1));
        }

        // Still here?!? At least make the first letter lowercase.
        return lcfirst($getterName);
    }
protected function preparePropertyName ( \ ReflectionMethod $ reflectionMethod ) { $ currentPrefix = $ this -> parameters [ static :: CURRENT_PREFIX ] ; // Get the name and remove the 'get' . . . $ getterName = $ reflectionMethod -> getName ( ) ; if ( strpos ( $ getterName , $ currentPrefix ) === 0 ) { return lcfirst ( substr ( $ getterName , strlen ( $ currentPrefix ) ) ) ; } // . . .  or the '_get'. if ( strpos ( $ getterName , '_' . $ currentPrefix ) === 0 ) { return lcfirst ( substr ( $ getterName , strlen ( $ currentPrefix ) + 1 ) ) ; } // Still here?!? At least make the first letter lowercase. return lcfirst ( $ getterName ) ; }
Get a first impression ot the possible property name for the getter.

@param \ReflectionMethod $reflectionMethod
A reflection of the getter method we are analysing.

@return string
The first impression of the property name.
Get a first impression ot the possible property name for the getter .