public function StatisticsViewsResult::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/statistics/src/StatisticsViewsResult.php \Drupal\statistics\StatisticsViewsResult::__construct()
- 9 core/modules/statistics/src/StatisticsViewsResult.php \Drupal\statistics\StatisticsViewsResult::__construct()
File
- core/
modules/ statistics/ src/ StatisticsViewsResult.php, line 25
Class
- StatisticsViewsResult
- Value object for passing statistic results.
Namespace
Drupal\statisticsCode
public function __construct($total_count, $day_count, $timestamp) {
$this->totalCount = (int) $total_count;
$this->dayCount = (int) $day_count;
$this->timestamp = (int) $timestamp;
}