Source of file ArrayBulkLoaderSource.php
Size: 0,536 Bytes - Last Modified: 2021-12-24T06:34:49+00:00
/var/www/docs.ssmods.com/process/src/code/bulkloader/sources/ArrayBulkLoaderSource.php
12345678910111213141516171819202122232425262728293031323334 | <?php /** * Array Bulk Loader Source * Useful for testing bulk loader. The output is the same as input. */ class ArrayBulkLoaderSource extends BulkLoaderSource { protected $data; public function __construct($data) { $this->data = $data; } public function getIterator() { return new ArrayIterator($this->data); } public function setData($data) { $this->data = $data; return $this; } public function getData() { return $this->data; } } |