public function getClosePersons($n, $p, $oc, $onlyRecent = null, $spouseAscend = null, $nbGenAsc = null, $nbGenDesc = null)
{
$ccp = new \geneweb\api\object\ClosePersonsParams();
$rp = new \geneweb\api\object\ReferencePerson();
$rp->setN((string) $n);
$rp->setP((string) $p);
$rp->setOc((int) $oc);
$ccp->setPerson($rp);
if ($nbGenAsc !== null && $nbGenAsc != "") {
$ccp->setNbGenAsc((int) $nbGenAsc);
}
if ($nbGenDesc !== null && $nbGenDesc != "") {
$ccp->setNbGenDesc((int) $nbGenDesc);
}
if ($spouseAscend !== null && $spouseAscend !== "") {
$ccp->setSpouseAscend((bool) $spouseAscend);
}
if ($onlyRecent !== null && $onlyRecent !== "") {
$ccp->setOnlyRecent((bool) $onlyRecent);
}
return $this->request("CLOSE_PERSONS", $ccp, $this->getClassname('ListPersonRelation'));
}