mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Added mutation score badge
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user