Hi Sam!
Happy holidays also to you!
The enroller variable is the user who is responsible for the enrolment instance in this course. Usually it is the first editing teacher - the person with "highest authority" as defined by sort_by_roleassignment_authority() having 'enrol/self:manage' capability.
Does it helps you?
Kind regards,
Sara