AdapterInterface.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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\Adapter;
  11. /**
  12. * @author Jean-François Simon <contact@jfsimon.fr>
  13. *
  14. * @deprecated since 2.8, to be removed in 3.0.
  15. */
  16. interface AdapterInterface
  17. {
  18. /**
  19. * @param bool $followLinks
  20. *
  21. * @return $this
  22. */
  23. public function setFollowLinks($followLinks);
  24. /**
  25. * @param int $mode
  26. *
  27. * @return $this
  28. */
  29. public function setMode($mode);
  30. /**
  31. * @return $this
  32. */
  33. public function setExclude(array $exclude);
  34. /**
  35. * @return $this
  36. */
  37. public function setDepths(array $depths);
  38. /**
  39. * @return $this
  40. */
  41. public function setNames(array $names);
  42. /**
  43. * @return $this
  44. */
  45. public function setNotNames(array $notNames);
  46. /**
  47. * @return $this
  48. */
  49. public function setContains(array $contains);
  50. /**
  51. * @return $this
  52. */
  53. public function setNotContains(array $notContains);
  54. /**
  55. * @return $this
  56. */
  57. public function setSizes(array $sizes);
  58. /**
  59. * @return $this
  60. */
  61. public function setDates(array $dates);
  62. /**
  63. * @return $this
  64. */
  65. public function setFilters(array $filters);
  66. /**
  67. * @param \Closure|int $sort
  68. *
  69. * @return $this
  70. */
  71. public function setSort($sort);
  72. /**
  73. * @return $this
  74. */
  75. public function setPath(array $paths);
  76. /**
  77. * @return $this
  78. */
  79. public function setNotPath(array $notPaths);
  80. /**
  81. * @param bool $ignore
  82. *
  83. * @return $this
  84. */
  85. public function ignoreUnreadableDirs($ignore = true);
  86. /**
  87. * @param string $dir
  88. *
  89. * @return \Iterator Result iterator
  90. */
  91. public function searchInDirectory($dir);
  92. /**
  93. * Tests adapter support for current platform.
  94. *
  95. * @return bool
  96. */
  97. public function isSupported();
  98. /**
  99. * Returns adapter name.
  100. *
  101. * @return string
  102. */
  103. public function getName();
  104. }