/** * Constructor * * @param Collection $collection */ public function __construct(Collection $collection) { parent::__construct($collection->getData()); $this->collection = $collection; $this->refreshPositions(); }
/** * Return a timeline of specific data types * * @param array $dataTypes What data types should events contain * @return Collection */ public function getData(array $dataTypes) { return $this->timeline->getData($dataTypes); }