MetadataProvider.php 553 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Theme\Model\Design\Config;
  7. class MetadataProvider implements MetadataProviderInterface
  8. {
  9. /**
  10. * @var array
  11. */
  12. protected $metadata;
  13. /**
  14. * @param array $metadata
  15. */
  16. public function __construct(array $metadata)
  17. {
  18. $this->metadata = $metadata;
  19. }
  20. /**
  21. * @inheritdoc
  22. *
  23. * @return array
  24. */
  25. public function get()
  26. {
  27. return $this->metadata;
  28. }
  29. }