protected function getTypeName($type) { if (strstr($type, '\\')) { return 'object'; } else { return strtolower($type); } }