1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\View\Layout\Generator;
- use Magento\Framework\View\Layout;
- use Magento\Framework\View\LayoutInterface;
- /**
- * @api
- * @since 100.0.2
- */
- class Context
- {
- /**
- * @var Layout\Data\Structure
- */
- protected $structure;
- /**
- * @var LayoutInterface
- */
- protected $layout;
- /**
- * Constructor
- *
- * @param Layout\Data\Structure $structure
- * @param LayoutInterface $layout
- */
- public function __construct(
- Layout\Data\Structure $structure,
- LayoutInterface $layout
- ) {
- $this->structure = $structure;
- $this->layout = $layout;
- }
- /**
- * @return \Magento\Framework\View\Layout\Data\Structure
- */
- public function getStructure()
- {
- return $this->structure;
- }
- /**
- * @return LayoutInterface
- */
- public function getLayout()
- {
- return $this->layout;
- }
- }
|