public function map(callable $callback) { $ret = []; foreach ($this as $entity) { $ret[] = call_user_func($callback, $entity); } return $ret; }