7 namespace Fossology\ReportImport;
16 protected $customText = NULL;
18 protected $comment =
"";
20 private $licenseCandidate = NULL;
22 function __construct($licenseId)
24 $this->licenseId = $licenseId;
27 public function setCustomText($customText)
29 $this->customText =
trim($customText);
42 $spdxCompatible = $spdxCompatible ==
true;
43 $this->licenseCandidate =
new License(
60 return $this->licenseId;
68 return $this->customText !== NULL;
76 return $this->customText;
84 return $this->comment;
92 return $this->licenseCandidate !== NULL;
100 return $this->licenseCandidate;
setLicenseCandidate($name, $text, $spdxCompatible, $url="")
char * trim(char *ptext)
Trimming whitespace.