[ticket/11201] Add visibility and remove unused variable

PHPBB3-11201
[ticket/11201] Update copyright in class file

PHPBB3-11201