Config.php 721 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Analytics\ReportXml;
  7. use Magento\Framework\Config\DataInterface;
  8. /**
  9. * Config of ReportXml
  10. */
  11. class Config implements ConfigInterface
  12. {
  13. /**
  14. * @var DataInterface
  15. */
  16. private $data;
  17. /**
  18. * Config constructor.
  19. *
  20. * @param DataInterface $data
  21. */
  22. public function __construct(
  23. DataInterface $data
  24. ) {
  25. $this->data = $data;
  26. }
  27. /**
  28. * Returns config value by name
  29. *
  30. * @param string $queryName
  31. * @return array
  32. */
  33. public function get($queryName)
  34. {
  35. return $this->data->get($queryName);
  36. }
  37. }