I think there is a misunderstanding here :)
I wondered why you decided to make the attributes protected, is it because you plan to inherit from this class in other classes?