namespace pharext\SourceDir;
-use pharext\Command;
use pharext\Cli\Args;
+use pharext\License;
use pharext\SourceDir;
/**
*/
class Git implements \IteratorAggregate, SourceDir
{
+ use License;
+
/**
* Base directory
* @var string
return [];
}
+ /**
+ * @inheritdoc
+ * @return string
+ */
+ public function getLicense() {
+ if (($file = $this->findLicense($this->getBaseDir()))) {
+ return $this->readLicense($file);
+ }
+ return "UNKNOWN";
+ }
+
/**
* @inheritdoc
* @return array