ConfigInterface.php 907 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Config\ConfigResource;
  7. use Magento\Framework\App\Config\ScopeConfigInterface;
  8. /**
  9. * Resource for storing store configuration values
  10. */
  11. interface ConfigInterface
  12. {
  13. /**
  14. * Save config value to the storage resource
  15. *
  16. * @param string $path
  17. * @param string $value
  18. * @param string $scope
  19. * @param int $scopeId
  20. * @return $this
  21. */
  22. public function saveConfig($path, $value, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0);
  23. /**
  24. * Delete config value from the storage resource
  25. *
  26. * @param string $path
  27. * @param string $scope
  28. * @param int $scopeId
  29. * @return $this
  30. */
  31. public function deleteConfig($path, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0);
  32. }