11 namespace Fossology\UI\Api\Models;
99 intval($row[
'lr_pk']),
100 $row[
'first_rf_fk'] ===
null ?
null : intval($row[
'first_rf_fk']),
101 $row[
'first_rf_shortname'],
102 $row[
'second_rf_fk'] ===
null ?
null : intval($row[
'second_rf_fk']),
103 $row[
'second_rf_shortname'],
107 $row[
'compatibility'] ===
't'
260 public function getJSON($version = ApiVersion::V1)
262 return json_encode($this->
getArray($version));
270 public function getArray($version = ApiVersion::V1)
272 if ($version == ApiVersion::V2) {
274 'id' => $this->
getId(),
286 'id' => $this->
getId(),
Model to hold a single license compatibility rule.
setSecondType($secondType)
setCompatibility($compatibility)
setSecondLicenseName($secondLicenseName)
getJSON($version=ApiVersion::V1)
setFirstLicenseId($firstLicenseId)
__construct($id, $firstLicenseId, $firstLicenseName, $secondLicenseId, $secondLicenseName, $firstType, $secondType, $comment, $compatibility)
getArray($version=ApiVersion::V1)
setSecondLicenseId($secondLicenseId)
setFirstLicenseName($firstLicenseName)