/**
  * Constructor.
  *
  * @param \Iterator $iterator    Iterator with string array elements
  * @param \Closure  $transformer Altering a data row
  */
 public function __construct(\Iterator $iterator, \Closure $transformer)
 {
     parent::__construct($iterator);
     $this->transformer = $transformer;
 }
 /**
  * @param array $data
  */
 public function __construct(array $data)
 {
     parent::__construct(new \ArrayIterator($data));
 }