12
12
* FilterIterator implementation that filters files based on prefix(es) and/or
13
13
* suffix(es). Hidden files and files from hidden directories are also filtered.
14
14
*
15
- * @author Sebastian Bergmann <[email protected] >
16
- * @copyright Sebastian Bergmann <[email protected] >
17
- * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
18
- * @version Release: @package_version@
19
- * @link http://github.com/sebastianbergmann/php-file-iterator/tree
20
15
* @since Class available since Release 1.0.0
21
16
*/
22
17
class File_Iterator extends FilterIterator
@@ -45,11 +40,11 @@ class File_Iterator extends FilterIterator
45
40
protected $ basepath ;
46
41
47
42
/**
48
- * @param Iterator $iterator
49
- * @param array $suffixes
50
- * @param array $prefixes
51
- * @param array $exclude
52
- * @param string $basepath
43
+ * @param Iterator $iterator
44
+ * @param array $suffixes
45
+ * @param array $prefixes
46
+ * @param array $exclude
47
+ * @param string $basepath
53
48
*/
54
49
public function __construct (Iterator $ iterator , array $ suffixes = array (), array $ prefixes = array (), array $ exclude = array (), $ basepath = NULL )
55
50
{
@@ -76,7 +71,7 @@ public function __construct(Iterator $iterator, array $suffixes = array(), array
76
71
}
77
72
78
73
/**
79
- * @return boolean
74
+ * @return bool
80
75
*/
81
76
public function accept ()
82
77
{
@@ -100,7 +95,7 @@ public function accept()
100
95
101
96
/**
102
97
* @param string $path
103
- * @return boolean
98
+ * @return bool
104
99
* @since Method available since Release 1.1.0
105
100
*/
106
101
protected function acceptPath ($ path )
@@ -116,7 +111,7 @@ protected function acceptPath($path)
116
111
117
112
/**
118
113
* @param string $filename
119
- * @return boolean
114
+ * @return bool
120
115
* @since Method available since Release 1.1.0
121
116
*/
122
117
protected function acceptPrefix ($ filename )
@@ -126,7 +121,7 @@ protected function acceptPrefix($filename)
126
121
127
122
/**
128
123
* @param string $filename
129
- * @return boolean
124
+ * @return bool
130
125
* @since Method available since Release 1.1.0
131
126
*/
132
127
protected function acceptSuffix ($ filename )
@@ -135,10 +130,10 @@ protected function acceptSuffix($filename)
135
130
}
136
131
137
132
/**
138
- * @param string $filename
139
- * @param array $subString
140
- * @param integer $type
141
- * @return boolean
133
+ * @param string $filename
134
+ * @param array $subString
135
+ * @param int $type
136
+ * @return bool
142
137
* @since Method available since Release 1.1.0
143
138
*/
144
139
protected function acceptSubString ($ filename , array $ subStrings , $ type )
0 commit comments