Yaffs site version 1.1
[yaffs-website] / vendor / symfony / finder / Adapter / AdapterInterface.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Finder\Adapter;
13
14 /**
15  * @author Jean-François Simon <contact@jfsimon.fr>
16  *
17  * @deprecated since 2.8, to be removed in 3.0.
18  */
19 interface AdapterInterface
20 {
21     /**
22      * @param bool $followLinks
23      *
24      * @return $this
25      */
26     public function setFollowLinks($followLinks);
27
28     /**
29      * @param int $mode
30      *
31      * @return $this
32      */
33     public function setMode($mode);
34
35     /**
36      * @param array $exclude
37      *
38      * @return $this
39      */
40     public function setExclude(array $exclude);
41
42     /**
43      * @param array $depths
44      *
45      * @return $this
46      */
47     public function setDepths(array $depths);
48
49     /**
50      * @param array $names
51      *
52      * @return $this
53      */
54     public function setNames(array $names);
55
56     /**
57      * @param array $notNames
58      *
59      * @return $this
60      */
61     public function setNotNames(array $notNames);
62
63     /**
64      * @param array $contains
65      *
66      * @return $this
67      */
68     public function setContains(array $contains);
69
70     /**
71      * @param array $notContains
72      *
73      * @return $this
74      */
75     public function setNotContains(array $notContains);
76
77     /**
78      * @param array $sizes
79      *
80      * @return $this
81      */
82     public function setSizes(array $sizes);
83
84     /**
85      * @param array $dates
86      *
87      * @return $this
88      */
89     public function setDates(array $dates);
90
91     /**
92      * @param array $filters
93      *
94      * @return $this
95      */
96     public function setFilters(array $filters);
97
98     /**
99      * @param \Closure|int $sort
100      *
101      * @return $this
102      */
103     public function setSort($sort);
104
105     /**
106      * @param array $paths
107      *
108      * @return $this
109      */
110     public function setPath(array $paths);
111
112     /**
113      * @param array $notPaths
114      *
115      * @return $this
116      */
117     public function setNotPath(array $notPaths);
118
119     /**
120      * @param bool $ignore
121      *
122      * @return $this
123      */
124     public function ignoreUnreadableDirs($ignore = true);
125
126     /**
127      * @param string $dir
128      *
129      * @return \Iterator Result iterator
130      */
131     public function searchInDirectory($dir);
132
133     /**
134      * Tests adapter support for current platform.
135      *
136      * @return bool
137      */
138     public function isSupported();
139
140     /**
141      * Returns adapter name.
142      *
143      * @return string
144      */
145     public function getName();
146 }