Could you rewrite this `array_map()` to mimic the behavior in the Doctrine transformer?

```
$ids = array();
foreach ($elasticaObjects as $elasticaObject) {
    $ids[] = $elasticaObject->getId();
}
```

That would remove any need for type-hinting and also make the code easier to handle highlighting support if that's added down the line.