public static function ClassUtils::newReflectionObject

Create a new reflection object

Parameters

object:

Return value

\ReflectionObject

2 calls to ClassUtils::newReflectionObject()
ClassUtilsTest::testNewReflectionObject in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php
@dataProvider dataGetClass
Debug::export in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/Debug.php
Export

File

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

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 newReflectionObject($object) {
  return self::newReflectionClass(self::getClass($object));
}