The compensation for a railroad police officer shall be paid by the company for which the railroad police officer is appointed.