Source of file ArrayBulkLoaderSource.php
Size: 0,594 Bytes - Last Modified: 2022-02-21T10:01:45+00:00
/var/www/docs.ssmods.com/process/src/src/ArrayBulkLoaderSource.php
1234567891011121314151617181920212223242526272829303132333435363738 | <?php namespace AntonyThorpe\Consumer; use ArrayIterator; /** * Array Bulk Loader Source * Useful for testing bulk loader. The output is the same as the 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; } } |