FamilyHistory::getRelativeName PHP Метод

getRelativeName() публичный Метод

Wrapper function for getting the relative name for this family history (checks for other value).
public getRelativeName ( ) : mixed | string
Результат mixed | string
    public function getRelativeName()
    {
        if ($this->relative) {
            if ($this->relative->is_other) {
                return $this->other_relative;
            } else {
                return $this->relative->name;
            }
        } else {
            return 'N/A';
        }
    }