FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
ReportImportData.php
1 <?php
2 /*
3  * Copyright (C) 2017, Siemens AG
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 namespace Fossology\ReportImport;
19 
21 {
22 
24  protected $licenseInfosInFile;
26  protected $licensesConcluded;
28  protected $copyrightTexts;
30  protected $pfiles;
31 
32  function __construct($licenseInfosInFile = array(), $licensesConcluded = array(), $copyrightTexts = array())
33  {
34  $this->licenseInfosInFile = $licenseInfosInFile;
35  $this->licensesConcluded = $licensesConcluded;
36  $this->copyrightTexts = $copyrightTexts;
37  }
38 
43  public function addLicenseInfoInFile($reportImportDataItem)
44  {
45  $this->licenseInfosInFile[] = $reportImportDataItem;
46  return $this;
47  }
48 
53  public function addCopyrightText($copyrightText)
54  {
55  $this->copyrightTexts[] = $copyrightText;
56  return $this;
57  }
58 
62  public function getLicenseInfosInFile()
63  {
64  return $this->licenseInfosInFile;
65  }
66 
70  public function getLicensesConcluded()
71  {
72  return $this->licensesConcluded;
73  }
74 
78  public function getCopyrightTexts()
79  {
80  return $this->copyrightTexts;
81  }
82 
86  public function getPfiles()
87  {
88  return $this->pfiles;
89  }
90 
95  public function setPfiles($pfiles)
96  {
97  $this->pfiles = $pfiles;
98  return $this;
99  }
100 }