How do you create a function that can work with different types of an object that share a parent class?

TechnicalSenior php developerPHP DeveloperWeb DeveloperSoftware Engineer