Class RelationshipsState
Class RelationshipsState
- Gedcomx\Rs\Client\GedcomxApplicationState
-
Gedcomx\Rs\Client\RelationshipsState
Direct known subclasses
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreeRelationshipsState
Methods summary
public
|
#
__construct( GuzzleHttp\Client $client, GuzzleHttp\Psr7\Request $request, GuzzleHttp\Psr7\Response $response, string $accessToken,
Constructs a new relationships state using the specified client, request, response, access token, and state factory. |
public
null|string
|
#
getSelfRel( )
Define the rel name for this state as a fall back if it cannot be determined from state data. |
public
|
#
getRelationships( )
Gets the relationships represented by the current entity collection Gedcomx->getRelationships(). |
public
|
|
public
|
#
addRelationship(
Creates a relationship between the persons specified in the relationship parameter. |
public
mixed
|
#
addSpouseRelationship(
Creates a spouse relationship between the two specified persons. The person1 parameter does not have to be the husband, it could be the wife; however, person2 must be the opposite. So if you specify a husband for person1 then person2 must be the wife. Conversely, if you specify a wife for person1 then person2 must be the husband. |
public
mixed
|
#
addParentChildRelationship(
Creates a parent child relationship for the specified persons. * |
Methods inherited from Gedcomx\Rs\Client\GedcomxApplicationState
authenticateViaOAuth2AuthCode(),
authenticateViaOAuth2ClientCredentials(),
authenticateViaOAuth2Password(),
authenticateViaOAuth2WithoutCredentials(),
authenticateWithAccessToken(),
delete(),
generateClientSecret(),
get(),
getAccessToken(),
getClient(),
getETag(),
getEntity(),
getHeader(),
getHeaders(),
getLastEmbeddedRequest(),
getLastEmbeddedResponse(),
getLastModified(),
getLink(),
getLinks(),
getRequest(),
getResourceReference(),
getResponse(),
getSelfUri(),
getStatus(),
getUri(),
hasClientError(),
hasError(),
hasServerError(),
hasStatus(),
head(),
ifSuccessful(),
inject(),
isAuthenticated(),
loadAllEmbeddedResources(),
logout(),
options(),
post(),
put(),
readAttributableContributor(),
readContributor(),
readReferenceContributor(),
send()