protected $timestamp;
public function __construct($total_count, $day_count, $timestamp) {
- $this->totalCount = $total_count;
- $this->dayCount = $day_count;
- $this->timestamp = $timestamp;
+ $this->totalCount = (int) $total_count;
+ $this->dayCount = (int) $day_count;
+ $this->timestamp = (int) $timestamp;
}
/**
return $this->totalCount;
}
-
/**
* Total number of times the entity has been viewed "today".
*
return $this->dayCount;
}
-
/**
* Timestamp of when the entity was last viewed.
*