@@ 16-30 (lines=15) @@ | ||
13 | * RowsOfFields, which expects uniform rows), and the data elements may |
|
14 | * themselves be deep arrays. |
|
15 | */ |
|
16 | class UnstructuredData extends AbstractListData implements UnstructuredInterface, RestructureInterface |
|
17 | { |
|
18 | public function __construct($data) |
|
19 | { |
|
20 | parent::__construct($data); |
|
21 | } |
|
22 | ||
23 | public function restructure(FormatterOptions $options) |
|
24 | { |
|
25 | $defaults = $this->defaultOptions(); |
|
26 | $fields = $this->getFields($options, $defaults); |
|
27 | ||
28 | return new UnstructuredDataTransformation($this->getArrayCopy(), FieldProcessor::processFieldAliases($fields)); |
|
29 | } |
|
30 | } |
|
31 |
@@ 16-30 (lines=15) @@ | ||
13 | * RowsOfFields, which expects uniform rows), and the data elements may |
|
14 | * themselves be deep arrays. |
|
15 | */ |
|
16 | class UnstructuredListData extends AbstractListData implements UnstructuredInterface, RestructureInterface |
|
17 | { |
|
18 | public function __construct($data) |
|
19 | { |
|
20 | parent::__construct($data); |
|
21 | } |
|
22 | ||
23 | public function restructure(FormatterOptions $options) |
|
24 | { |
|
25 | $defaults = $this->defaultOptions(); |
|
26 | $fields = $this->getFields($options, $defaults); |
|
27 | ||
28 | return new UnstructuredDataListTransformation($this->getArrayCopy(), FieldProcessor::processFieldAliases($fields)); |
|
29 | } |
|
30 | } |
|
31 |