У меня есть класс, который мне нужно использовать для расширения различных классов (до сотен) в зависимости от критериев. Есть ли способ в PHP расширить класс с помощью имени динамического класса?
Я предполагаю, что для этого потребуется метод для указания расширения с помощью экземпляра.
Идеи?