DataSource.php 767 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Store\Model;
  7. /**
  8. * Dummy layout argument data source object
  9. */
  10. class DataSource extends \Magento\Framework\Data\Collection
  11. {
  12. /**
  13. * Property which stores all updater calls
  14. *
  15. * @var array
  16. */
  17. protected $_calls = [];
  18. /**
  19. * Return current updater calls
  20. *
  21. * @return array
  22. */
  23. public function getUpdaterCall()
  24. {
  25. return $this->_calls;
  26. }
  27. /**
  28. * Set updater calls
  29. *
  30. * @param array $calls
  31. * @return \Magento\Store\Model\DataSource
  32. */
  33. public function setUpdaterCall(array $calls)
  34. {
  35. $this->_calls = $calls;
  36. return $this;
  37. }
  38. }