public static function ClassUtils::newReflectionClass

Create a new reflection class

Parameters

string:

Return value

\ReflectionClass

2 calls to ClassUtils::newReflectionClass()
ClassUtils::newReflectionObject in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php
Create a new reflection object
ClassUtilsTest::testNewReflectionClass in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php
@dataProvider dataGetClass

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php, line 76

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 newReflectionClass($class) {
  return new \ReflectionClass(self::getRealClass($class));
}