diff --git a/src/Result/Metric/Integer.php b/src/Result/Metric/IntegerValue.php similarity index 80% rename from src/Result/Metric/Integer.php rename to src/Result/Metric/IntegerValue.php index 338f24b..e5f5b4c 100644 --- a/src/Result/Metric/Integer.php +++ b/src/Result/Metric/IntegerValue.php @@ -4,7 +4,7 @@ namespace Panaly\Result\Metric; -final readonly class Integer implements Value +final readonly class IntegerValue implements Value { public function __construct(public int $value) { diff --git a/tests/Fixtures/Plugin/TestPlugin.php b/tests/Fixtures/Plugin/TestPlugin.php index c99224e..8368edf 100644 --- a/tests/Fixtures/Plugin/TestPlugin.php +++ b/tests/Fixtures/Plugin/TestPlugin.php @@ -9,7 +9,7 @@ use Panaly\Plugin\Plugin\Metric; use Panaly\Plugin\Plugin\Reporting; use Panaly\Plugin\Plugin\Storage; -use Panaly\Result\Metric\Integer; +use Panaly\Result\Metric\IntegerValue; use Panaly\Result\Metric\Value; use Panaly\Result\Result; use Symfony\Component\VarDumper\VarDumper; @@ -39,7 +39,7 @@ public function getDefaultTitle(): string public function calculate(array $options): Value { - return new Integer(12); + return new IntegerValue(12); } }, ];