src/Graviton/GeneratorBundle/Generator/ResourceGenerator/XDynamicKey.php
private static function prepareFunctionNames($refMethods)
    {
        $fieldNames = explode('.', $refMethods);

        $getters = [];
        foreach ($fieldNames as $field) {
            array_push($getters, 'get'.ucfirst($field));
        }

        return $getters;
    }
private static function prepareFunctionNames($refMethods)
    {
        $fieldNames = explode('.', $refMethods);

        $getters = [];
        foreach ($fieldNames as $field) {
            array_push($getters, 'get'.ucfirst($field));
        }

        return $getters;
    }
private static function prepareFunctionNames ( $ refMethods ) { $ fieldNames = explode ( '.' , $ refMethods ) ; $ getters = [ ] ; foreach ( $ fieldNames as $ field ) { array_push ( $ getters , 'get' . ucfirst ( $ field ) ) ; } return $ getters ; }
prepares getter methods for every given field name

@param  string $refMethods string containing "path" to the ref field
@return array
prepares getter methods for every given field name