Added mutation score badge

This commit is contained in:
Alejandro Celaya
2021-12-05 08:55:05 +01:00
parent 4a4522dfa3
commit 7477e672fe
4 changed files with 13 additions and 11 deletions

View File

@@ -10,20 +10,13 @@ use function sprintf;
final class TagRenaming
{
private string $oldName;
private string $newName;
private function __construct()
private function __construct(private string $oldName, private string $newName)
{
}
public static function fromNames(string $oldName, string $newName): self
{
$o = new self();
$o->oldName = $oldName;
$o->newName = $newName;
return $o;
return new self($oldName, $newName);
}
public static function fromArray(array $payload): self