fetchEvents() public method

A Source must be able to fetch events. On this source we treat page versions as events with start and end dates.
public fetchEvents ( string $start, string $end ) : array(StdClass)
$start string
$end string
return array(StdClass)
 /**
  * Requests the json for a given start and stop date for a given page source
  *
  * @param  array $input
  * @return Response
  */
 public function requestPageVersionEventSource($input)
 {
     $start = array_get($input, 'start');
     $end = array_get($input, 'end');
     return $this->Response->json($this->PageVersionSource->fetchEvents($start, $end));
 }