public function __construct(EntityManager $entity_manager, QueryInterface $query, array $results, $full_size = null, $use_cache = true)
{
$this->entity_manager = $entity_manager;
$this->query = $query;
$this->id_list = $results;
$this->iterator = new \ArrayIterator($this->id_list);
$this->full_size = $full_size;
$this->use_cache = (bool) $use_cache;
}