Using Laravel, I'm iterating through a series of classes and doing an operation on a subset of instances of each class. The classes are provided as strings, eg:
$c = '\App\Models\Book';
$c::each(function($i) {
echo $i->title . PHP_EOL;
});
How would I type hint $i
?