<?php

namespace Tests\Support\Steps;

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

class FakePollStep implements ProvisioningStep
{
    public function key(): string
    {
        return 'fake_poll';
    }

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

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

    public function execute(ProvisioningRun $run): StepResult
    {
        return StepResult::poll(15, 'still waiting');
    }
}
