Browse Source

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

master
Anton Grebnev 13 years ago
parent
commit
a02c3992bd
  1. 8
      model/MongoDbCommand.php

8
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

Loading…
Cancel
Save