|
@@ 102-111 (lines=10) @@
|
| 99 |
|
return $this->calendarService->events->insert($this->calendarId, $event, $optParams); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
public function insertEvents(iterable $events, $optParams = []) |
| 103 |
|
{ |
| 104 |
|
collect($events) |
| 105 |
|
->each( |
| 106 |
|
function ($event, $batchIdentifier) use ($optParams) { |
| 107 |
|
$this->batchRequests->add($this->insertEvent($event, $optParams), $batchIdentifier); |
| 108 |
|
}); |
| 109 |
|
|
| 110 |
|
return $this; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
/** |
| 114 |
|
* @param $event |
|
@@ 128-137 (lines=10) @@
|
| 125 |
|
return $this->calendarService->events->update($this->calendarId, $event->id, $event, $optParams); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
public function updateEvents(iterable $events, $optParams = []) |
| 129 |
|
{ |
| 130 |
|
collect($events) |
| 131 |
|
->each( |
| 132 |
|
function ($event, $batchIdentifier) use ($optParams) { |
| 133 |
|
$this->batchRequests->add($this->updateEvent($event, $optParams), $batchIdentifier); |
| 134 |
|
}); |
| 135 |
|
|
| 136 |
|
return $this; |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
/** |
| 140 |
|
* @param $eventId |