version = $version; \RectorPrefix20210930\Webmozart\Assert\Assert::notSame($oldPackageName, $newPackageName, 'Old and new package have to be different. If you want to only change package version, use ' . \Rector\Composer\Rector\ChangePackageVersionComposerRector::class); $this->oldPackageName = $oldPackageName; $this->newPackageName = $newPackageName; } public function getOldPackageName() : string { return $this->oldPackageName; } public function getNewPackageName() : string { return $this->newPackageName; } public function getVersion() : string { return $this->version; } }