FamilyHistory::getConditionName PHP Метод

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

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