/** * getMethodType * @desc extract method informations * @param string $string */ public static function getMethodType($string) { $tmp = explode("_", Google_Base::underscore($string)); $methodType = array(); $methodType["length"] = strlen($tmp[0]); $methodType["type"] = $tmp[0]; $methodType["name"] = substr($string, $methodType["length"]); return $methodType; }