app/Family.php
public function spouse(Individual $person, $access_level = null): ?Individual
    {
        if ($person === $this->wife) {
            return $this->husband($access_level);
        }

        return $this->wife($access_level);
    }
public function spouse(Individual $person, $access_level = null): ?Individual
    {
        if ($person === $this->wife) {
            return $this->husband($access_level);
        }

        return $this->wife($access_level);
    }
public function spouse ( Individual $ person , $ access_level = null ) : ? Individual { if ( $ person === $ this -> wife ) { return $ this -> husband ( $ access_level ) ; } return $ this -> wife ( $ access_level ) ; }
Find the spouse of a person.

@param Individual $person
@param int|null   $access_level

@return Individual|null
Find the spouse of a person .