App\Libraries\Utils::getClientDisplayName PHP Method

getClientDisplayName() public static method

public static getClientDisplayName ( $model )
    public static function getClientDisplayName($model)
    {
        if ($model->client_name) {
            return $model->client_name;
        } elseif ($model->first_name || $model->last_name) {
            return $model->first_name . ' ' . $model->last_name;
        } else {
            return $model->email;
        }
    }