Ben bu yöntemi aramak ne olursa olsun alt sınıf örneklerini oluşturur bir üst sınıfta statik bir yöntem istiyorum.
Bu daha açık hale getirmek için bir örnek:
class parent {
public static method make_objects($conditions){
for (...){
// here i want to create an instance
// of whatever subclass i am calling make_objects on
// based on certain $conditions
}
}
}
class sub extends parent{
...
}
$objects = sub::make_objects($some_conditions);