'html' => 'xml',
);
- public function __construct($path, Repository $repo)
+ public function __construct($path, Repository $repo = null)
{
$this->path = $path;
$this->repo = $repo;
return basename($this->path);
}
+ /**
+ * Return the full path to the file
+ *
+ * @return string
+ */
+ public function getPath()
+ {
+ return $this->path;
+ }
+
/**
* Get file extension without dot
*