<?php

namespace Tests\Support\Steps;

use App\Models\ProvisioningRun;
use App\Provisioning\Contracts\ProvisioningStep;
use App\Provisioning\StepResult;

class FakeRetryStep implements ProvisioningStep
{
    public function key(): string
    {
        return 'fake_retry';
    }

    public function label(): string
    {
        return 'Fake retry';
    }

    public function maxDuration(): int
    {
        return 120;
    }

    public function execute(ProvisioningRun $run): StepResult
    {
        return StepResult::retry(30, 'need more time');
    }
}
