Which method of accounting records income when it is earned regardless of when it is received?

Which method of accounting records income when it is earned regardless of when it is received?