type = $type; $this->oldMethod = $oldMethod; $this->newMethod = $newMethod; $this->newArguments = $newArguments; } public function getObjectType() : \PHPStan\Type\ObjectType { return new \PHPStan\Type\ObjectType($this->type); } public function getOldMethod() : string { return $this->oldMethod; } public function getNewMethod() : string { return $this->newMethod; } /** * @return mixed[] */ public function getNewArguments() : array { return $this->newArguments; } }