<?php

namespace humhub\modules\suggestedfollowing\services;

use humhub\modules\user\models\User;

/**
 * Value object pairing a user with their follow overlap count.
 *
 * @package humhub\modules\suggestedfollowing\services
 */
class SuggestedFollowResult
{
    public User $user;

    /**
     * Number of people the current user follows who also follow this candidate.
     */
    public int $overlapCount;

    public function __construct(User $user, int $overlapCount)
    {
        $this->user = $user;
        $this->overlapCount = $overlapCount;
    }
}
