FOSSology  4.4.0
Open Source License Compliance by Open Source Software
LicenseMatch.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014-2015 Siemens AG
4  Authors: Andreas Würl, Daniele Fognini
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 
9 namespace Fossology\Lib\Data;
10 
12 {
16  private $licenseRef;
20  private $agentRef;
24  private $percent;
28  private $fileId;
32  private $licenseFileId;
33 
41  public function __construct($fileId, LicenseRef $licenseRef, AgentRef $agentRef, $licenseFileId, $percent = null)
42  {
43  $this->fileId = $fileId;
44  $this->licenseRef = $licenseRef;
45  $this->agentRef = $agentRef;
46  $this->licenseFileId = $licenseFileId;
47  $this->percent = $percent;
48  }
49 
53  public function getFileId()
54  {
55  return $this->fileId;
56  }
57 
61  public function getLicenseFileId()
62  {
63  return $this->licenseFileId;
64  }
65 
69  public function getLicenseRef()
70  {
71  return $this->licenseRef;
72  }
73 
77  public function getAgentRef()
78  {
79  return $this->agentRef;
80  }
81 
85  public function getPercentage()
86  {
87  return $this->percent;
88  }
89 
93  public function getLicenseId()
94  {
95  return $this->licenseRef->getId();
96  }
97 }
__construct($fileId, LicenseRef $licenseRef, AgentRef $agentRef, $licenseFileId, $percent=null)