12 namespace Fossology\UI\Api\Models;
74 if (array_key_exists(($version == ApiVersion::V2?
"nomosMonk" :
"nomos_monk"), $deciderArray)) {
75 $this->
setNomosMonk($deciderArray[$version == ApiVersion::V2?
"nomosMonk" :
"nomos_monk"]);
77 if (array_key_exists(($version == ApiVersion::V2?
"bulkReused" :
"bulk_reused"), $deciderArray)) {
78 $this->
setBulkReused($deciderArray[$version == ApiVersion::V2?
"bulkReused" :
"bulk_reused"]);
80 if (array_key_exists(($version == ApiVersion::V2?
"newScanner" :
"new_scanner"), $deciderArray)) {
81 $this->
setNewScanner($deciderArray[$version == ApiVersion::V2?
"newScanner" :
"new_scanner"]);
83 if (array_key_exists(($version == ApiVersion::V2?
"ojoDecider" :
"ojo_decider"), $deciderArray)) {
84 $this->
setOjoDecider($deciderArray[$version == ApiVersion::V2?
"ojoDecider" :
"ojo_decider"]);
86 if (array_key_exists(($version == ApiVersion::V2?
"concludeLicenseType" :
"conclude_license_type"), $deciderArray)) {
87 $this->
setConcludeLicenseType($deciderArray[$version == ApiVersion::V2?
"concludeLicenseType" :
"conclude_license_type"]);
139 $this->nomosMonk = filter_var(
$nomosMonk, FILTER_VALIDATE_BOOLEAN);
147 $this->bulkReused = filter_var(
$bulkReused, FILTER_VALIDATE_BOOLEAN);
155 $this->newScanner = filter_var(
$newScanner, FILTER_VALIDATE_BOOLEAN);
163 $this->ojoDecider = filter_var(
$ojoDecider, FILTER_VALIDATE_BOOLEAN);
174 $this->concludeLicenseType =
"";
182 public function getArray($version = ApiVersion::V1)
184 if ($version == ApiVersion::V2) {
setNewScanner($newScanner)
__construct($nomosMonk=false, $bulkReused=false, $newScanner=false, $ojoDecider=false, $concludeLicenseType="")
setBulkReused($bulkReused)
setOjoDecider($ojoDecider)
getArray($version=ApiVersion::V1)
setUsingArray($deciderArray, $version=ApiVersion::V1)
setConcludeLicenseType($concludeLicenseType)
char * trim(char *ptext)
Trimming whitespace.