src/Transfer/Adapter/Transaction/DataAggregate.php
public function setData($data)
    {
        $this->originalData = $data;

        if ($data instanceof \Iterator) {
            $this->iterator = $data;
        }
        elseif (is_array($data)) {
            $this->iterator = new \ArrayIterator($data);
        }
        else {
            $this->iterator = new \ArrayIterator(array($data));
        }
    }
public function setData($data)
    {
        $this->originalData = $data;

        if ($data instanceof \Iterator) {
            $this->iterator = $data;
        }
        elseif (is_array($data)) {
            $this->iterator = new \ArrayIterator($data);
        }
        else {
            $this->iterator = new \ArrayIterator(array($data));
        }
    }
public function setData ( $ data ) { $ this -> originalData = $ data ; if ( $ data instanceof \ Iterator ) { $ this -> iterator = $ data ; } elseif ( is_array ( $ data ) ) { $ this -> iterator = new \ ArrayIterator ( $ data ) ; } else { $ this -> iterator = new \ ArrayIterator ( array ( $ data ) ) ; } }
Assigns data to the aggregate.

@param mixed $data
Assigns data to the aggregate .