| @@ 66-73 (lines=8) @@ | ||
| 63 | /** |
|
| 64 | * {@inheritdoc} |
|
| 65 | */ |
|
| 66 | public function count($filter = [], array $options = []) |
|
| 67 | { |
|
| 68 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 69 | $result = parent::count($query->getFilters(), $query->getOptions()); |
|
| 70 | $this->notifyQueryExecution($query); |
|
| 71 | ||
| 72 | return $result; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * {@inheritdoc} |
|
| @@ 78-85 (lines=8) @@ | ||
| 75 | /** |
|
| 76 | * {@inheritdoc} |
|
| 77 | */ |
|
| 78 | public function find($filter = [], array $options = []) |
|
| 79 | { |
|
| 80 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 81 | $result = parent::find($query->getFilters(), $query->getOptions()); |
|
| 82 | $this->notifyQueryExecution($query); |
|
| 83 | ||
| 84 | return $result; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * {@inheritdoc} |
|
| @@ 90-97 (lines=8) @@ | ||
| 87 | /** |
|
| 88 | * {@inheritdoc} |
|
| 89 | */ |
|
| 90 | public function findOne($filter = [], array $options = []) |
|
| 91 | { |
|
| 92 | $query = $this->prepareQuery(__FUNCTION__, $filter, null, $options); |
|
| 93 | $result = parent::findOne($query->getFilters(), $query->getOptions()); |
|
| 94 | $this->notifyQueryExecution($query); |
|
| 95 | ||
| 96 | return $result; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * {@inheritdoc} |
|
| @@ 102-109 (lines=8) @@ | ||
| 99 | /** |
|
| 100 | * {@inheritdoc} |
|
| 101 | */ |
|
| 102 | public function findOneAndUpdate($filter, $update, array $options = []) |
|
| 103 | { |
|
| 104 | $query = $this->prepareQuery(__FUNCTION__, $filter, $update, $options); |
|
| 105 | $result = parent::findOneAndUpdate($query->getFilters(), $query->getData(), $query->getOptions()); |
|
| 106 | $this->notifyQueryExecution($query); |
|
| 107 | ||
| 108 | return $result; |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * {@inheritdoc} |
|
| @@ 150-157 (lines=8) @@ | ||
| 147 | /** |
|
| 148 | * {@inheritdoc} |
|
| 149 | */ |
|
| 150 | public function replaceOne($filter, $replacement, array $options = []) |
|
| 151 | { |
|
| 152 | $query = $this->prepareQuery(__FUNCTION__, $filter, $replacement, $options); |
|
| 153 | $result = parent::replaceOne($query->getFilters(), $query->getData(), $query->getOptions()); |
|
| 154 | $this->notifyQueryExecution($query); |
|
| 155 | ||
| 156 | return $result; |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * {@inheritdoc} |
|
| @@ 162-169 (lines=8) @@ | ||
| 159 | /** |
|
| 160 | * {@inheritdoc} |
|
| 161 | */ |
|
| 162 | public function insertOne($document, array $options = []) |
|
| 163 | { |
|
| 164 | $query = $this->prepareQuery(__FUNCTION__, [], $document, $options); |
|
| 165 | $result = parent::insertOne($query->getData(), $query->getOptions()); |
|
| 166 | $this->notifyQueryExecution($query); |
|
| 167 | ||
| 168 | return $result; |
|
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * {@inheritdoc} |
|
| @@ 174-181 (lines=8) @@ | ||
| 171 | /** |
|
| 172 | * {@inheritdoc} |
|
| 173 | */ |
|
| 174 | public function updateOne($filter, $update, array $options = []) |
|
| 175 | { |
|
| 176 | $query = $this->prepareQuery(__FUNCTION__, $filter, $update, $options); |
|
| 177 | $result = parent::updateOne($query->getFilters(), $query->getData(), $query->getOptions()); |
|
| 178 | $this->notifyQueryExecution($query); |
|
| 179 | ||
| 180 | return $result; |
|
| 181 | } |
|
| 182 | ||
| 183 | /** |
|
| 184 | * {@inheritdoc} |
|
| @@ 186-193 (lines=8) @@ | ||
| 183 | /** |
|
| 184 | * {@inheritdoc} |
|
| 185 | */ |
|
| 186 | public function distinct($fieldName, $filter = [], array $options = []) |
|
| 187 | { |
|
| 188 | $query = $this->prepareQuery(__FUNCTION__, $filter, ['fieldName' => $fieldName], $options); |
|
| 189 | $result = parent::distinct($fieldName, $query->getFilters(), $query->getOptions()); |
|
| 190 | $this->notifyQueryExecution($query); |
|
| 191 | ||
| 192 | return $result; |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * @param string $method |
|