Get the real class name of a class name that could be a proxy.
string:
string
public static function getRealClass($class) {
if (false === ($pos = strrpos($class, '\\' . Proxy::MARKER . '\\'))) {
return $class;
}
return substr($class, $pos + Proxy::MARKER_LENGTH + 2);
}