WriterInterface.php 958 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Application config storage writer interface
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\App\Config\Storage;
  9. use Magento\Framework\App\Config\ScopeConfigInterface;
  10. /**
  11. * Interface \Magento\Framework\App\Config\Storage\WriterInterface
  12. * @api
  13. * @since 100.0.2
  14. */
  15. interface WriterInterface
  16. {
  17. /**
  18. * Delete config value from storage
  19. *
  20. * @param string $path
  21. * @param string $scope
  22. * @param int $scopeId
  23. * @return void
  24. */
  25. public function delete($path, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0);
  26. /**
  27. * Save config value to storage
  28. *
  29. * @param string $path
  30. * @param string $value
  31. * @param string $scope
  32. * @param int $scopeId
  33. * @return void
  34. */
  35. public function save($path, $value, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0);
  36. }