Changes
make Blurb be responsible for setting its own fields
local Blurb = class('Blurb')
function Blurb:initialize(protectionObj, args, cfg)
self._cfg = cfg
self._protectionObj = protectionObj
self._bannerConfig = protectionObj.bannerConfig
self._title = protectionObj.title
self._deletionDiscussionPage = args.xfd
self._username = args.user
self._section = args.section
end
-- Public methods --
function Blurb:makeReasonText()
-- Initialise protection and blurb objects
local protectionObj = Protection:new(args, cfg)
local blurbObj = Blurb:new(protectionObj, args, cfg) blurbObj:setDeletionDiscussionPage(args.xfd) blurbObj:setUsername(args.user) blurbObj:setSection(args.section)
local ret = {}