protected static function popsStaticClassProxyDefinitionProxyClass(
        $originalClass,
        $proxyClass
    ) {
        if (null === $proxyClass) {
            $originalClassParts = explode('\\', $originalClass);
            $proxyClassPrefix = array_pop($originalClassParts) . '_Pops_';
            $proxyClassNamespace = implode('\\', $originalClassParts);
            $proxyClass = uniqid($proxyClassPrefix);
            if ($proxyClassNamespace) {
                $proxyClass = sprintf(
                    '%s\\%s',
                    $proxyClassNamespace,
                    $proxyClass
                );
            }
        }

        return $proxyClass;
    }
protected static function popsStaticClassProxyDefinitionProxyClass(
        $originalClass,
        $proxyClass
    ) {
        if (null === $proxyClass) {
            $originalClassParts = explode('\\', $originalClass);
            $proxyClassPrefix = array_pop($originalClassParts) . '_Pops_';
            $proxyClassNamespace = implode('\\', $originalClassParts);
            $proxyClass = uniqid($proxyClassPrefix);
            if ($proxyClassNamespace) {
                $proxyClass = sprintf(
                    '%s\\%s',
                    $proxyClassNamespace,
                    $proxyClass
                );
            }
        }

        return $proxyClass;
    }
protected static function popsStaticClassProxyDefinitionProxyClass ( $ originalClass , $ proxyClass ) { if ( null === $ proxyClass ) { $ originalClassParts = explode ( '\\' , $ originalClass ) ; $ proxyClassPrefix = array_pop ( $ originalClassParts ) . '_Pops_' ; $ proxyClassNamespace = implode ( '\\' , $ originalClassParts ) ; $ proxyClass = uniqid ( $ proxyClassPrefix ) ; if ( $ proxyClassNamespace ) { $ proxyClass = sprintf ( '%s\\%s' , $ proxyClassNamespace , $ proxyClass ) ; } } return $ proxyClass ; }
Generate a static class proxy class name, or return the supplied name.

@param string      $originalClass The name of the class being proxied.
@param string|null $proxyClass    The class name to use for the proxy class.

@return string The proxy class name.
Generate a static class proxy class name or return the supplied name .