You are here

public static function Debug::toString in Plug 7

Returns a string representation of an object.

Parameters

object $obj:

Return value

string

File

lib/doctrine/common/lib/Doctrine/Common/Util/Debug.php, line 153

Class

Debug
Static class containing most used debug methods.

Namespace

Doctrine\Common\Util

Code

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