Skip to content

Commit

Permalink
Rename Integer class to IntegerValue because Integer is protected
Browse files Browse the repository at this point in the history
  • Loading branch information
DZunke committed May 6, 2024
1 parent b833959 commit e5826ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixtures/Plugin/TestPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -39,7 +39,7 @@ public function getDefaultTitle(): string

public function calculate(array $options): Value
{
return new Integer(12);
return new IntegerValue(12);
}
},
];
Expand Down

0 comments on commit e5826ce

Please sign in to comment.