oldClass = $oldClass; $this->oldConstant = $oldConstant; $this->newConstant = $newConstant; RectorAssert::className($oldClass); RectorAssert::constantName($oldConstant); RectorAssert::constantName($newConstant); } public function getOldObjectType() : ObjectType { return new ObjectType($this->oldClass); } public function getOldConstant() : string { return $this->oldConstant; } public function getNewConstant() : string { return $this->newConstant; } }