<?php

namespace App\Integrations\Majestic;

use RandomLib\Factory;

class FakeReportHandler implements ReportHandler
{
    /**
     * @var Factory
     */
    private $randomFactory;

    public function __construct(Factory $randomFactory)
    {
        $this->randomFactory = $randomFactory;
    }

    public function report(Request $request): Response
    {
        $tf = $this->randomFactory->getMediumStrengthGenerator()->generateInt(0, 100);
        $cf = $this->randomFactory->getMediumStrengthGenerator()->generateInt(0, 100);

        return Response::from($request->getUrl(), $tf, $cf);
    }
}
