Config.php 608 B

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