/** * Updates the specified collection. * * @param Collection $collection * @param StateTransitionOption $options * @return CollectionState|null */ public function updateCollection(Collection $collection, StateTransitionOption $options = null) { $link = $collection->getLink("self"); if ($link == null || $link->getHref() == null) { return null; } $request = $this->createAuthenticatedGedcomxRequest("POST", $link->getHref()); return $this->stateFactory->createState("CollectionState", $this->client, $request, $this->passOptionsTo('invoke', array($request), func_get_args()), $this->accessToken); }