You are here

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\Controller
View 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

Namesort descending Modifiers Type Description Overrides
TopResult::$count public property The number of hits on the grouped URL.
TopResult::$uri public property The URL on which the count of hits is grouped.
TopResult::bsonUnserialize public function