b17b97960c0a1929f491259d318f0dd0edf214d4
[yaffs-website] / vendor / mikey179 / vfsStream / src / main / php / org / bovigo / vfs / DotDirectory.php
1 <?php
2 /**
3  * This file is part of vfsStream.
4  *
5  * For the full copyright and license information, please view the LICENSE
6  * file that was distributed with this source code.
7  *
8  * @package  org\bovigo\vfs
9  */
10 namespace org\bovigo\vfs;
11 /**
12  * Directory container.
13  */
14 class DotDirectory extends vfsStreamDirectory
15 {
16     /**
17      * returns iterator for the children
18      *
19      * @return  vfsStreamContainerIterator
20      */
21     public function getIterator()
22     {
23         return new \ArrayIterator(array());
24     }
25
26     /**
27      * checks whether dir is a dot dir
28      *
29      * @return  bool
30      */
31     public function isDot()
32     {
33         return true;
34     }
35 }