added __toString() to MongoCommand - need to implement in subclasses

This commit is contained in:
Anton Grebnev
2011-11-24 19:24:05 +04:00
parent a3e0cafb32
commit a02c3992bd

View File

@ -59,6 +59,14 @@ abstract class MongoDbCommand
abstract protected function concreteExecute(); abstract protected function concreteExecute();
abstract protected function checkParams(); abstract protected function checkParams();
/**
* @TODO: implement method in subclasses for Profiler
*/
public function __toString()
{
return get_called_class();
}
} }
class FindMongoCommand extends MongoDbCommand class FindMongoCommand extends MongoDbCommand