Changed $values visibility to protected

changed the visibility from public to protected as @fabpot suggested.