/** * Adds a place description to the current collection of place descriptions. * * @param \Gedcomx\Conclusion\PlaceDescription $place * @param \Gedcomx\Rs\Client\Options\StateTransitionOption $option,... * * @return PlaceDescriptionState */ public function addPlaceDescription(PlaceDescription $place, StateTransitionOption $option = null) { $entity = new Gedcomx(); $entity->addPlace($place); $request = $this->createAuthenticatedGedcomxRequest('POST', $this->getSelfUri(), [], null, $entity->toJson()); return $this->stateFactory->createState('PlaceDescriptionState', $this->client, $request, $this->passOptionsTo('invoke', array($request), func_get_args()), $this->accessToken); }