Response.php 820 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Shell;
  7. use Magento\Framework\DataObject;
  8. /**
  9. * Encapsulates output of shell command
  10. */
  11. class Response extends DataObject
  12. {
  13. /**
  14. * Get output
  15. *
  16. * @return string
  17. * @codeCoverageIgnore
  18. */
  19. public function getOutput()
  20. {
  21. return $this->getData('output');
  22. }
  23. /**
  24. * Get exit code
  25. *
  26. * @return int
  27. * @codeCoverageIgnore
  28. */
  29. public function getExitCode()
  30. {
  31. return $this->getData('exit_code');
  32. }
  33. /**
  34. * Get escaped command
  35. *
  36. * @return string
  37. * @codeCoverageIgnore
  38. */
  39. public function getEscapedCommand()
  40. {
  41. return $this->getData('escaped_command');
  42. }
  43. }