FOSSology  4.4.0
Open Source License Compliance by Open Source Software
SpdxLicenseInfo.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2023 Siemens AG
4  SPDX-FileContributor: Gaurav Mishra <mishra.gaurav@siemens.com>
5 
6  SPDX-License-Identifier: GPL-2.0-only
7  */
8 
9 namespace Fossology\Lib\Data\Report;
10 
12 
14 {
19  private $licenseObj;
24  private $listedLicense = false;
29  private $customText = false;
34  private $textPrinted = false;
35 
39  public function isTextPrinted(): bool
40  {
41  return $this->textPrinted;
42  }
43 
49  {
50  $this->textPrinted = $textPrinted;
51  return $this;
52  }
53 
57  public function getLicenseObj(): License
58  {
59  return $this->licenseObj;
60  }
61 
67  {
68  $this->licenseObj = $licenseObj;
69  return $this;
70  }
71 
75  public function isListedLicense(): bool
76  {
77  return $this->listedLicense;
78  }
79 
85  {
86  $this->listedLicense = $listedLicense;
87  return $this;
88  }
89 
93  public function isCustomText(): bool
94  {
95  return $this->customText;
96  }
97 
103  {
104  $this->customText = $customText;
105  return $this;
106  }
107 }