Fix phpspecs #96

Fix getMapping() function