When would you define an interface instead of a class?

TechnicalSenior php developerPHP DeveloperWeb DeveloperSoftware Engineer