| @@ 54-61 (lines=8) @@ | ||
| 51 | /** |
|
| 52 | * {@inheritdoc} |
|
| 53 | */ |
|
| 54 | public function count($filter = [], array $options = []) |
|
| 55 | { |
|
| 56 | $event = $this->prepareEvent(__FUNCTION__, $filter, null, $options); |
|
| 57 | $result = parent::count($filter, $options); |
|
| 58 | $this->notifyQueryExecution($event); |
|
| 59 | ||
| 60 | return $result; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * {@inheritdoc} |
|
| @@ 66-73 (lines=8) @@ | ||
| 63 | /** |
|
| 64 | * {@inheritdoc} |
|
| 65 | */ |
|
| 66 | public function find($filter = [], array $options = []) |
|
| 67 | { |
|
| 68 | $event = $this->prepareEvent(__FUNCTION__, $filter, null, $options); |
|
| 69 | $result = parent::find($filter, $options); |
|
| 70 | $this->notifyQueryExecution($event); |
|
| 71 | ||
| 72 | return $result; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * {@inheritdoc} |
|
| @@ 150-157 (lines=8) @@ | ||
| 147 | /** |
|
| 148 | * {@inheritdoc} |
|
| 149 | */ |
|
| 150 | public function insertOne($document, array $options = []) |
|
| 151 | { |
|
| 152 | $event = $this->prepareEvent(__FUNCTION__, [], $document, $options); |
|
| 153 | $result = parent::insertOne($document, $options); |
|
| 154 | $this->notifyQueryExecution($event); |
|
| 155 | ||
| 156 | return $result; |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * {@inheritdoc} |
|