HeaderProviderInterface.php 627 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\Response\HeaderProvider;
  7. /**
  8. * Interface \Magento\Framework\App\Response\HeaderProvider\HeaderProviderInterface
  9. *
  10. */
  11. interface HeaderProviderInterface
  12. {
  13. /**
  14. * Whether the header should be attached to the response
  15. *
  16. * @return bool
  17. */
  18. public function canApply();
  19. /**
  20. * Header name
  21. *
  22. * @return string
  23. */
  24. public function getName();
  25. /**
  26. * Header value
  27. *
  28. * @return string
  29. */
  30. public function getValue();
  31. }