Exemple #1
0
 protected function createEmptySelf()
 {
     $person = new Person();
     $person->setId($this->getLocalSelfId());
     return $person;
 }
 /**
  * Declares the specified search result entry as not a match for the current person.
  *
  * @param Entry $entry
  * @param StateTransitionOption $options
  * @return PersonNonMatchesState
  */
 public function addNonMatch(Entry $entry, StateTransitionOption $options = null)
 {
     $link = $this->getLink(Rel::NOT_A_MATCHES);
     if ($link == null || $link->getHref() == null) {
         return null;
     }
     $entity = new Gedcomx();
     $person = new Person();
     $person->setId($entry->getId());
     $entity->addPerson($person);
     $request = $this->createAuthenticatedRequest('POST', $link->getHref(), FamilySearchRequest::getMediaTypes(), null, $entity->toJson());
     return $this->stateFactory->createState("PersonNonMatchesState", $this->client, $request, $this->passOptionsTo('invoke', array($request), func_get_args()), $this->accessToken);
 }