You are here

public static function ClassUtils::generateProxyClassName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php \Doctrine\Common\Util\ClassUtils::generateProxyClassName()

Given a class name and a proxy namespace returns the proxy name.

Parameters

string $className:

string $proxyNamespace:

Return value

string

3 calls to ClassUtils::generateProxyClassName()
ClassUtilsTest::testGenerateProxyClassName in vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php
ProxyGenerator::generateNamespace in vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates the proxy namespace.
ProxyGenerator::generateProxyShortClassName in vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php
Generates the proxy short class name to be used in the template.

File

vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php, line 105

Class

ClassUtils
Class and reflection related functionality for objects that might or not be proxy objects at the moment.

Namespace

Doctrine\Common\Util

Code

public static function generateProxyClassName($className, $proxyNamespace) {
  return rtrim($proxyNamespace, '\\') . '\\' . Proxy::MARKER . '\\' . ltrim($className, '\\');
}