public static function Debug::toString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Util/Debug.php \Doctrine\Common\Util\Debug::toString()
Returns a string representation of an object.
Parameters
object $obj:
Return value
string
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Util/ Debug.php, line 153
Class
- Debug
- Static class containing most used debug methods.
Namespace
Doctrine\Common\UtilCode
public static function toString($obj) {
return method_exists($obj, '__toString') ? (string) $obj : get_class($obj) . '@' . spl_object_hash($obj);
}