Version 1
[yaffs-website] / vendor / mikey179 / vfsStream / src / main / php / org / bovigo / vfs / DotDirectory.php
diff --git a/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/DotDirectory.php b/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/DotDirectory.php
new file mode 100644 (file)
index 0000000..b17b979
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+/**
+ * This file is part of vfsStream.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ *
+ * @package  org\bovigo\vfs
+ */
+namespace org\bovigo\vfs;
+/**
+ * Directory container.
+ */
+class DotDirectory extends vfsStreamDirectory
+{
+    /**
+     * returns iterator for the children
+     *
+     * @return  vfsStreamContainerIterator
+     */
+    public function getIterator()
+    {
+        return new \ArrayIterator(array());
+    }
+
+    /**
+     * checks whether dir is a dot dir
+     *
+     * @return  bool
+     */
+    public function isDot()
+    {
+        return true;
+    }
+}