<?php

namespace App\Integrations\Copyscape;

class RemainingResponse
{
    private $value;
    private $today;

    private function __construct()
    {
    }

    public static function from(float $value, int $today)
    {
        $response = new self();
        $response->value = $value;
        $response->today = $today;

        return $response;
    }

    public function __toString()
    {
        return sprintf('We have $%s and %s requests left', $this->value, $this->today);
    }
}
