<?php

namespace Tests\Support\Steps;

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

class FakeThrowStep implements ProvisioningStep
{
    public function key(): string
    {
        return 'fake_throw';
    }

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

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

    public function execute(ProvisioningRun $run): StepResult
    {
        throw new RuntimeException('kaboom');
    }
}
