paste deletion is possible now
[phorkie.git] / src / Phorkie / File.php
index bf2eb601d40b7d34d8c06a23dc0f18d7335aa8b4..3c6ea4b42e687b532563e54633a4557a4360b9fe 100644 (file)
@@ -42,7 +42,7 @@ class File
         'html' => 'xml',
     );
 
-    public function __construct($path, Repository $repo)
+    public function __construct($path, Repository $repo = null)
     {
         $this->path = $path;
         $this->repo = $repo;
@@ -58,6 +58,16 @@ class File
         return basename($this->path);
     }
 
+    /**
+     * Return the full path to the file
+     *
+     * @return string
+     */
+    public function getPath()
+    {
+        return $this->path;
+    }
+
     /**
      * Get file extension without dot
      *