From a02c3992bda2a94e2babd1636ed997f543cf30f6 Mon Sep 17 00:00:00 2001 From: Anton Grebnev Date: Thu, 24 Nov 2011 19:24:05 +0400 Subject: [PATCH] added __toString() to MongoCommand - need to implement in subclasses --- model/MongoDbCommand.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/model/MongoDbCommand.php b/model/MongoDbCommand.php index 7c9328d..d348d4c 100644 --- a/model/MongoDbCommand.php +++ b/model/MongoDbCommand.php @@ -59,6 +59,14 @@ abstract class MongoDbCommand abstract protected function concreteExecute(); abstract protected function checkParams(); + + /** + * @TODO: implement method in subclasses for Profiler + */ + public function __toString() + { + return get_called_class(); + } } class FindMongoCommand extends MongoDbCommand