public static function Debug::toString

Convert to string

Parameters

object $obj:

Return value

string

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/Debug.php, line 131

Class

Debug
Static class containing most used debug methods.

Namespace

Doctrine\Common\Util

Code

public static function toString($obj) {
  return method_exists('__toString', $obj) ? (string) $obj : get_class($obj) . '@' . spl_object_hash($obj);
}