Iterator.php 402 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Model\Menu;
  7. /**
  8. * Menu iterator
  9. * @api
  10. * @since 100.0.2
  11. */
  12. class Iterator extends \ArrayIterator
  13. {
  14. /**
  15. * Rewind to first element
  16. *
  17. * @return void
  18. */
  19. public function rewind()
  20. {
  21. $this->ksort();
  22. parent::rewind();
  23. }
  24. }