final class TopResult in MongoDB 8.2
Class TopResult is a value object holding the Top aggregation results.
Hierarchy
- class \Drupal\mongodb_watchdog\Controller\TopResult implements \MongoDB\BSON\Unserializable
Expanded class hierarchy of TopResult
File
- modules/
mongodb_watchdog/ src/ Controller/ TopResult.php, line 10
Namespace
Drupal\mongodb_watchdog\ControllerView source
final class TopResult implements Unserializable {
/**
* The number of hits on the grouped URL.
*
* @var int
*/
public $count;
/**
* The URL on which the count of hits is grouped.
*
* @var string
*/
public $uri;
/**
* {@inheritDoc}
*/
public function bsonUnserialize(array $data) {
$this->uri = $data['_id'];
$this->count = $data['count'];
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TopResult:: |
public | property | The number of hits on the grouped URL. | |
TopResult:: |
public | property | The URL on which the count of hits is grouped. | |
TopResult:: |
public | function |