{
use License;
use PackageInfo;
-
+
private $path;
-
+
public function __construct($path) {
- $this->path = $path;
+ $this->path = realpath($path);
}
-
+
public function getBaseDir() {
return $this->path;
}
public function getPackageInfo() {
return $this->findPackageInfo($this->getBaseDir());
}
-
+
public function getLicense() {
if (($file = $this->findLicense($this->getBaseDir()))) {
return $this->readLicense($file);
public function getArgs() {
return [];
}
-
+
public function setArgs(Args $args) {
}