Context.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Layout\Generator;
  7. use Magento\Framework\View\Layout;
  8. use Magento\Framework\View\LayoutInterface;
  9. /**
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class Context
  14. {
  15. /**
  16. * @var Layout\Data\Structure
  17. */
  18. protected $structure;
  19. /**
  20. * @var LayoutInterface
  21. */
  22. protected $layout;
  23. /**
  24. * Constructor
  25. *
  26. * @param Layout\Data\Structure $structure
  27. * @param LayoutInterface $layout
  28. */
  29. public function __construct(
  30. Layout\Data\Structure $structure,
  31. LayoutInterface $layout
  32. ) {
  33. $this->structure = $structure;
  34. $this->layout = $layout;
  35. }
  36. /**
  37. * @return \Magento\Framework\View\Layout\Data\Structure
  38. */
  39. public function getStructure()
  40. {
  41. return $this->structure;
  42. }
  43. /**
  44. * @return LayoutInterface
  45. */
  46. public function getLayout()
  47. {
  48. return $this->layout;
  49. }
  50. }