pheature-flags/toggle-crud

View on GitHub
src/Command/RemoveFeature.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Pheature\Crud\Toggle\Command;

use Pheature\Core\Toggle\Write\FeatureId;

final class RemoveFeature
{
    private FeatureId $featureId;

    private function __construct(string $featureId)
    {
        $this->featureId = FeatureId::fromString($featureId);
    }

    public static function withId(string $featureId): self
    {
        return new self($featureId);
    }

    public function featureId(): FeatureId
    {
        return $this->featureId;
    }
}