3 namespace Drupal\statistics;
6 * Value object for passing statistic results.
8 class StatisticsViewsResult {
13 protected $totalCount;
25 public function __construct($total_count, $day_count, $timestamp) {
26 $this->totalCount = $total_count;
27 $this->dayCount = $day_count;
28 $this->timestamp = $timestamp;
32 * Total number of times the entity has been viewed.
36 public function getTotalCount() {
37 return $this->totalCount;
42 * Total number of times the entity has been viewed "today".
46 public function getDayCount() {
47 return $this->dayCount;
52 * Timestamp of when the entity was last viewed.
56 public function getTimestamp() {
57 return $this->timestamp;