public function TimelineEra::__construct in Views TimelineJS integration 7.3
File
- src/
TimelineEra.php, line 29
Class
- TimelineEra
- Defines a TimelineJS3 era.
Code
public function __construct(TimelineDateInterface $start_date, TimelineDateInterface $end_date, TimelineTextInterface $text = NULL) {
$this->start_date = $start_date;
$this->end_date = $end_date;
if (!empty($text)) {
$this->text = $text;
}
}