private function getMethodNumberFromTheMethodName($methodName) { $methodNumber = 2; if (preg_match('/(\\d+)$/', $methodName, $matches)) { $methodNumber = intval($matches[1]); } return $methodNumber; }