app/Individual.php
public function getCurrentSpouse(): ?Individual
    {
        $family = $this->spouseFamilies()->last();

        if ($family instanceof Family) {
            return $family->spouse($this);
        }

        return null;
    }
public function getCurrentSpouse(): ?Individual
    {
        $family = $this->spouseFamilies()->last();

        if ($family instanceof Family) {
            return $family->spouse($this);
        }

        return null;
    }
public function getCurrentSpouse ( ) : ? Individual { $ family = $ this -> spouseFamilies ( ) -> last ( ) ; if ( $ family instanceof Family ) { return $ family -> spouse ( $ this ) ; } return null ; }
Get the current spouse of this individual.

Where an individual has multiple spouses, assume they are stored
in chronological order, and take the last one found.

@return Individual|null
Get the current spouse of this individual .