Accretion of Mass and Spin Angular Momentum by a Planet on an Eccentric Orbit