11 namespace Fossology\UI\Api\Models;
103 public function __construct()
105 $this->mainLicense =
null;
106 $this->uniqueLicenses = 0;
107 $this->uploadId =
null;
108 $this->totalLicenses = 0;
109 $this->uploadName =
null;
110 $this->uniqueConcludedLicenses = 0;
111 $this->totalConcludedLicenses = 0;
112 $this->filesToBeCleared = 0;
113 $this->filesCleared = 0;
114 $this->clearingStatus = UploadStatus::OPEN;
115 $this->copyrightCount = 0;
116 $this->assignee =
null;
117 $this->concludedNoLicenseFoundCount = 0;
118 $this->fileCount = 0;
119 $this->noScannerLicenseFoundCount = 0;
120 $this->scannerUniqueLicenseCount = 0;
129 return json_encode($this->
getArray());
295 case UploadStatus::OPEN:
298 case UploadStatus::IN_PROGRESS:
299 $string =
"InProgress";
301 case UploadStatus::CLOSED:
304 case UploadStatus::REJECTED:
305 $string =
"Rejected";
Model class to hold Upload info.
setUniqueLicenses($uniqueLicenses)
setUniqueConcludedLicenses($uniqueConcludedLicenses)
$scannerUniqueLicenseCount
setCopyrightCount($copyrightCount)
setNoScannerLicenseFoundCount($noScannerLicenseFoundCount)
setTotalConcludedLicenses($totalConcludedLicenses)
$concludedNoLicenseFoundCount
$noScannerLicenseFoundCount
setClearingStatus($clearingStatus)
static statusToString($status)
setScannerUniqueLicenseCount($scannerUniqueLicenseCount)
setUploadName($uploadName)
setMainLicense($mainLicense)
setFilesCleared($filesCleared)
setFilesToBeCleared($filesToBeCleared)
setTotalLicenses($totalLicenses)
setConcludedNoLicenseFoundCount($concludedNoLicenseFoundCount)