Collectable.php 947 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace TYPO3\PharStreamWrapper;
  3. /*
  4. * This file is part of the TYPO3 project.
  5. *
  6. * It is free software; you can redistribute it and/or modify it under the terms
  7. * of the MIT License (MIT). For the full copyright and license information,
  8. * please read the LICENSE file that was distributed with this source code.
  9. *
  10. * The TYPO3 project - inspiring people to share!
  11. */
  12. use TYPO3\PharStreamWrapper\Resolver\PharInvocation;
  13. interface Collectable
  14. {
  15. /**
  16. * @param PharInvocation $invocation
  17. * @return bool
  18. */
  19. public function has(PharInvocation $invocation);
  20. /**
  21. * @param PharInvocation $invocation
  22. * @param null $flags
  23. * @return bool
  24. */
  25. public function collect(PharInvocation $invocation, $flags = null);
  26. /**
  27. * @param callable $callback
  28. * @param bool $reverse
  29. * @return null|PharInvocation
  30. */
  31. public function findByCallback($callback, $reverse = false);
  32. }