|
|
| $tagNamespace = CycloneDxSettings::DEFAULT_NAMESPACE |
| |
|
| $specVersion = CycloneDxSettings::DEFAULT_VERSION |
| |
Definition at line 17 of file reportgenerator.php.
◆ applySettings()
◆ createComponent()
| Fossology\CycloneDX\BomReportGenerator::createComponent |
( |
array |
$componentData | ) |
|
Creates a component.
- Parameters
-
| array | $componentData | The component data. |
- Returns
- array The generated component.
Definition at line 59 of file reportgenerator.php.
◆ createHash()
| Fossology\CycloneDX\BomReportGenerator::createHash |
( |
|
$algorithm, |
|
|
|
$content |
|
) |
| |
Creates a hash.
- Parameters
-
| string | $algorithm | The algorithm used for hashing. |
| string | $content | The content to be hashed. |
- Returns
- array The generated hash.
Definition at line 71 of file reportgenerator.php.
◆ createLicense()
| Fossology\CycloneDX\BomReportGenerator::createLicense |
( |
array |
$licenseData | ) |
|
Creates a license.
- Parameters
-
| array | $licenseData | The license data. |
- Returns
- array The generated license.
Definition at line 82 of file reportgenerator.php.
◆ generateComponent()
| Fossology\CycloneDX\BomReportGenerator::generateComponent |
( |
array |
$componentData | ) |
|
|
private |
Generates a component.
- Parameters
-
| array | $componentData | The component data. |
- Returns
- array The generated component.
"Specifies the scope of the component. If scope is not specified,
'required' scope SHOULD be assumed by the consumer of the BOM."
Definition at line 163 of file reportgenerator.php.
◆ generateHash()
| Fossology\CycloneDX\BomReportGenerator::generateHash |
( |
string |
$algorithm, |
|
|
string |
$content |
|
) |
| |
|
private |
Generates a hash.
- Parameters
-
| string | $algorithm | The algorithm used for hashing. |
| string | $content | The content to be hashed. |
- Returns
- array The generated hash.
Definition at line 301 of file reportgenerator.php.
◆ generateReport()
| Fossology\CycloneDX\BomReportGenerator::generateReport |
( |
|
$bomdata | ) |
|
Generates the report.
- Parameters
-
| array | $bomdata | The BOM data. |
- Returns
- array The generated report.
Definition at line 93 of file reportgenerator.php.
◆ generateTools()
| Fossology\CycloneDX\BomReportGenerator::generateTools |
( |
|
$toolVersion | ) |
|
|
private |
- Parameters
-
- Returns
- array metadata.tools in the form the spec version expects
Definition at line 131 of file reportgenerator.php.
◆ supports()
| Fossology\CycloneDX\BomReportGenerator::supports |
( |
string |
$version | ) |
|
|
private |
- Parameters
-
| string | $version | Spec version that introduced a field |
- Returns
- bool True if the document's spec version has that field
Definition at line 48 of file reportgenerator.php.
The documentation for this class was generated from the following file: