class = $class; $this->oldPropertyName = $oldPropertyName; $this->newMethodName = $newMethodName; RectorAssert::className($class); RectorAssert::propertyName($oldPropertyName); RectorAssert::methodName($newMethodName); } public function getObjectType() : ObjectType { return new ObjectType($this->class); } public function getOldPropertyName() : string { return $this->oldPropertyName; } public function getNewMethodName() : string { return $this->newMethodName; } }