Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Reader.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
11 
15 class Reader implements ReaderInterface
16 {
20  private $readers;
21 
25  public function __construct(
26  array $readers = []
27  ) {
28  $this->readers = $readers;
29  }
30 
37  public function read($scope = null) : array
38  {
39  $output = [];
40  foreach ($this->readers as $reader) {
41  $output = array_replace_recursive($output, $reader->read($scope));
42  }
43  return $output;
44  }
45 }