14 public function listAction(array $filter = [],
int $limit = 50): ?array
18 if (isset($filter[
'lastDate']))
22 $date =
new DateTime($filter[
'lastDate'], DateTimeInterface::RFC3339);
26 $this->
addError(
new Error($exception->getCode(), $exception->getMessage()));
31 return $syncService->getChangesFromDate($date, $limit);
36 if (isset($filter[
'lastId']))
38 $lastId = (int)$filter[
'lastId'];
41 return $syncService->getChangesFromId($lastId, $limit);