Einstein showed that the photoelectric effect could be understood by:

Treating light as a stream of particles

Treating the photoelectrons as waves

Treating light as an electromagnetic wave

Ignoring the energy of the light