DependsOnInterface.php 691 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\ObjectManager\TestAsset;
  7. class DependsOnInterface
  8. {
  9. /**
  10. * @var \Magento\Framework\ObjectManager\TestAsset\TestAssetInterface
  11. */
  12. protected $_object;
  13. /**
  14. * @param \Magento\Framework\ObjectManager\TestAsset\TestAssetInterface $object
  15. */
  16. public function __construct(\Magento\Framework\ObjectManager\TestAsset\TestAssetInterface $object)
  17. {
  18. $this->_object = $object;
  19. }
  20. /**
  21. * @return TestAssetInterface
  22. */
  23. public function getInterfaceDependency()
  24. {
  25. return $this->_object;
  26. }
  27. }