<?php

namespace NoahVet\Reef\Domain\Security\Model;

class NotPrefixedResource extends Resource
{
    #[\Override]
    public static function fromString(ResourceType|string $resourceType, string $resourceId): static
    {
        $resourceTypeObj = \is_string($resourceType) ? ResourceType::fromString($resourceType) : $resourceType;

        return new static($resourceTypeObj, $resourceId, $resourceId);
    }
}
