FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ReportImportData.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2017 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 namespace Fossology\ReportImport;
8 
10 {
11 
13  protected $licenseInfosInFile;
15  protected $licensesConcluded;
17  protected $copyrightTexts;
19  protected $pfiles;
20 
21  function __construct($licenseInfosInFile = array(), $licensesConcluded = array(), $copyrightTexts = array())
22  {
23  $this->licenseInfosInFile = $licenseInfosInFile;
24  $this->licensesConcluded = $licensesConcluded;
25  $this->copyrightTexts = $copyrightTexts;
26  }
27 
32  public function addLicenseInfoInFile($reportImportDataItem)
33  {
34  $this->licenseInfosInFile[] = $reportImportDataItem;
35  return $this;
36  }
37 
42  public function addCopyrightText($copyrightText)
43  {
44  $this->copyrightTexts[] = $copyrightText;
45  return $this;
46  }
47 
51  public function getLicenseInfosInFile()
52  {
53  return $this->licenseInfosInFile;
54  }
55 
59  public function getLicensesConcluded()
60  {
61  return $this->licensesConcluded;
62  }
63 
67  public function getCopyrightTexts()
68  {
69  return $this->copyrightTexts;
70  }
71 
75  public function getPfiles()
76  {
77  return $this->pfiles;
78  }
79 
84  public function setPfiles($pfiles)
85  {
86  $this->pfiles = $pfiles;
87  return $this;
88  }
89 }