You are here

private function ProxyGenerator::generateNamespace in Plug 7

Generates the proxy namespace.

Parameters

\Doctrine\Common\Persistence\Mapping\ClassMetadata $class:

Return value

string

1 call to ProxyGenerator::generateNamespace()
ProxyGenerator::generateProxyClass in lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates a proxy class file.

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php, line 330

Class

ProxyGenerator
This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.

Namespace

Doctrine\Common\Proxy

Code

private function generateNamespace(ClassMetadata $class) {
  $proxyClassName = ClassUtils::generateProxyClassName($class
    ->getName(), $this->proxyNamespace);
  $parts = explode('\\', strrev($proxyClassName), 2);
  return strrev($parts[1]);
}