<?php

declare(strict_types=1);

namespace Builder\Core\Exceptions;

final class CircularHierarchyException extends BuilderException
{
    public static function forParent(int|string $parentId): self
    {
        return new self("Parent ID {$parentId} would create a circular hierarchy.");
    }
}
