Example #1
0
 /**
  * Constructor
  *
  * @param Collection $collection
  */
 public function __construct(Collection $collection)
 {
     parent::__construct($collection->getData());
     $this->collection = $collection;
     $this->refreshPositions();
 }
Example #2
0
 /**
  * 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);
 }