The class Thelia\ImportExport\Export\AbstractExport has been deprecated: since 2.4, please use a specific AbstractExport (like JsonFileAbstractExport).
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
15
abstract class ArrayAbstractExport extends /** @scrutinizer ignore-deprecated */ AbstractExport
Loading history...
16
{
17
/**
18
* @var array Data to export
19
*/
20
private $data;
21
22
public function current()
23
{
24
return current($this->data);
25
}
26
27
public function key()
28
{
29
return key($this->data);
30
}
31
32
public function next()
33
{
34
next($this->data);
35
}
36
37
public function rewind()
38
{
39
if ($this->data === null) {
40
$data = $this->getData();
41
42
if (\is_array($data)) {
43
$this->data = $data;
44
reset($this->data);
45
46
return;
47
}
48
49
throw new \DomainException(
50
'Data must be an array.'
51
);
52
}
53
54
throw new \LogicException('Export data can\'t be rewinded');