protected function generateGetterName(string $propertyName) : string
    {
        static $methods = [];

        if (isset($methods[$propertyName])) {
            return $methods[$propertyName];
        }

        $method = 'get' . ucfirst(Str::camel($propertyName));
        $methods[$propertyName] = $method;

        return $method;
    }
protected function generateGetterName(string $propertyName) : string
    {
        static $methods = [];

        if (isset($methods[$propertyName])) {
            return $methods[$propertyName];
        }

        $method = 'get' . ucfirst(Str::camel($propertyName));
        $methods[$propertyName] = $method;

        return $method;
    }
protected function generateGetterName ( string $ propertyName ) : string { static $ methods = [ ] ; if ( isset ( $ methods [ $ propertyName ] ) ) { return $ methods [ $ propertyName ] ; } $ method = 'get' . ucfirst ( Str :: camel ( $ propertyName ) ) ; $ methods [ $ propertyName ] = $ method ; return $ method ; }
Generate and return a 'getter' name, based upon the given
property name

<b>Example</b><br />
<pre>
$propertyName = 'logger';
return generateGetterName($propertyName) // Returns getLogger
</pre>

@param string $propertyName Name of a given property

@return string Getter method name
Generate and return a getter name based upon the given property name