There are five different ways to get logable pilot in command (PIC) time according to FAR 61.51(c)(2)

1. Sole manipulator of the controls in an aircraft rated for.
2. Sole occupant of aircraft
3. Certified Flight Instructor acting as CFI
4. Applies to ATPs
5. Applies to two pilots required for aircraft