I was reading through the code and came across this syntax:
$customerIDs = array_map(function(Customer $customer) { return $customer->id; }, $customers);
where $customers is the array.
My confusion is in trying to understand function(Customer $customer). I see that Customer is a class, but what is $customer then?