classdef(Hidden,Sealed) RenameEventData < event.EventData
    %RENAMEEVENTDATA Event data containg the old and new names associated
    %with a variable being renamed
    
    %Copyright 2017 The MathWorks, Inc.
    
    properties
        OldName
        NewName
    end
    
    methods
        function this = RenameEventData(oldname, newname)
            %Store the old and new names as event data
            validateattributes(oldname,{'char'},{'row'});
            validateattributes(newname,{'char'},{'row'});
            this.OldName = oldname;
            this.NewName = newname;
        end
    end
    
end

