UnsupportedAdapter.php 816 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Finder\Tests\FakeAdapter;
  11. use Symfony\Component\Finder\Adapter\AbstractAdapter;
  12. /**
  13. * @author Jean-François Simon <contact@jfsimon.fr>
  14. */
  15. class UnsupportedAdapter extends AbstractAdapter
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function searchInDirectory($dir)
  21. {
  22. return new \ArrayIterator(array());
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function getName()
  28. {
  29. return 'unsupported';
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. protected function canBeUsed()
  35. {
  36. return false;
  37. }
  38. }