Changing event $visitor property to protected