State.php 666 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * App State class for integration tests framework
  8. */
  9. namespace Magento\TestFramework\App;
  10. class State extends \Magento\Framework\App\State
  11. {
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function getAreaCode()
  16. {
  17. return $this->_areaCode;
  18. }
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function setAreaCode($code)
  23. {
  24. $this->_areaCode = $code;
  25. $this->_configScope->setCurrentScope($code);
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function setMode($mode)
  31. {
  32. $this->_appMode = $mode;
  33. }
  34. }