You are here

public function TimelineSlide::__construct in Views TimelineJS integration 7.3

1 method overrides TimelineSlide::__construct()
TimelineTitleSlide::__construct in src/TimelineTitleSlide.php

File

src/TimelineSlide.php, line 71

Class

TimelineSlide
Defines a TimelineJS3 slide.

Code

public function __construct(TimelineDateInterface $start_date, TimelineDateInterface $end_date = NULL, TimelineTextInterface $text = NULL) {
  $this->start_date = $start_date;
  if (!empty($end_date)) {
    $this->end_date = $end_date;
  }
  if (!empty($text)) {
    $this->text = $text;
  }
}