Passively Q-switched and femtosecond modelocked erbium-doped fiber laser based on a 2D palladium disulfide (PdS2) saturable absorber