Version 1
[yaffs-website] / vendor / alchemy / zippy / src / Adapter / Resource / FileResource.php
diff --git a/vendor/alchemy/zippy/src/Adapter/Resource/FileResource.php b/vendor/alchemy/zippy/src/Adapter/Resource/FileResource.php
new file mode 100644 (file)
index 0000000..fbafc4b
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+/*
+ * This file is part of Zippy.
+ *
+ * (c) Alchemy <info@alchemy.fr>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ *
+ */
+
+namespace Alchemy\Zippy\Adapter\Resource;
+
+class FileResource implements ResourceInterface
+{
+    private $path;
+
+    public function __construct($path)
+    {
+        $this->path = $path;
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function getResource()
+    {
+        return $this->path;
+    }
+}