public function setArraySource(array $data=null)
    {
        if($data===null)
        {
            $this->iterator = null;
        }
        else
        {
            $this->iterator = new \ArrayIterator($data);
        }
    }
public function setArraySource(array $data=null)
    {
        if($data===null)
        {
            $this->iterator = null;
        }
        else
        {
            $this->iterator = new \ArrayIterator($data);
        }
    }
public function setArraySource ( array $ data = null ) { if ( $ data === null ) { $ this -> iterator = null ; } else { $ this -> iterator = new \ ArrayIterator ( $ data ) ; } }
Array as import source
@param array $data
Array as import source