Security update for Core, with self-updated composer
[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      * @return $this
37      */
38     public function setExclude(array $exclude);
39
40     /**
41      * @return $this
42      */
43     public function setDepths(array $depths);
44
45     /**
46      * @return $this
47      */
48     public function setNames(array $names);
49
50     /**
51      * @return $this
52      */
53     public function setNotNames(array $notNames);
54
55     /**
56      * @return $this
57      */
58     public function setContains(array $contains);
59
60     /**
61      * @return $this
62      */
63     public function setNotContains(array $notContains);
64
65     /**
66      * @return $this
67      */
68     public function setSizes(array $sizes);
69
70     /**
71      * @return $this
72      */
73     public function setDates(array $dates);
74
75     /**
76      * @return $this
77      */
78     public function setFilters(array $filters);
79
80     /**
81      * @param \Closure|int $sort
82      *
83      * @return $this
84      */
85     public function setSort($sort);
86
87     /**
88      * @return $this
89      */
90     public function setPath(array $paths);
91
92     /**
93      * @return $this
94      */
95     public function setNotPath(array $notPaths);
96
97     /**
98      * @param bool $ignore
99      *
100      * @return $this
101      */
102     public function ignoreUnreadableDirs($ignore = true);
103
104     /**
105      * @param string $dir
106      *
107      * @return \Iterator Result iterator
108      */
109     public function searchInDirectory($dir);
110
111     /**
112      * Tests adapter support for current platform.
113      *
114      * @return bool
115      */
116     public function isSupported();
117
118     /**
119      * Returns adapter name.
120      *
121      * @return string
122      */
123     public function getName();
124 }