File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## unreleased
6
6
7
+ * Docs
8
+ * Announce and annotate the generator for BOM's SerialNumber ([ #277 ] via [ #282 ] )
9
+
10
+ [ #282 ] : https://github.com/CycloneDX/cyclonedx-php-library/pull/282
11
+
7
12
## 2.1.0 - 2023-03-24
8
13
9
14
* Fixed
@@ -13,7 +18,8 @@ All notable changes to this project will be documented in this file.
13
18
* ` \CycloneDX\Core\Models\Bom::setSerialNumber() ` no longer throws ` \DomainException ` when the value is of an unsupported format ([ #277 ] via [ #278 ] )
14
19
This is considered a non-breaking behaviour change, because the corresponding normalizers assure valid data results.
15
20
* Added
16
- * Bom serialNumber generator: ` \CycloneDX\Core\Utils\BomUtility::randomSerialNumber() ` ([ #277 ] via [ #278 ] )
21
+ * Published generator for BOM's SerialNumber: ` \CycloneDX\Core\Utils\BomUtility::randomSerialNumber() ` ([ #277 ] via [ #278 ] )
22
+ The code was donated from [ cyclonedx-php-composer] ( https://github.com/CycloneDX/cyclonedx-php-composer ) .
17
23
18
24
[ #277 ] : https://github.com/CycloneDX/cyclonedx-php-library/issues/277
19
25
[ #278 ] : https://github.com/CycloneDX/cyclonedx-php-library/pull/278
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ Work with Bill of Materials (BOM) in [CycloneDX] format.
48
48
* ` Metadata `
49
49
* ` Property ` , ` PropertyRepository `
50
50
* ` Tool ` , ` ToolRepository `
51
+ * Utilities for the following use cases:
52
+ * Generate valid random SerialNumbers for ` Bom.serialNumber `
51
53
* Factories for the following use cases:
52
54
* Create data models from any license descriptor string
53
55
* Implementation of the [ _ CycloneDX_ Specification] [ CycloneDX-spec ] for the following versions:
Original file line number Diff line number Diff line change 34
34
abstract class BomUtility
35
35
{
36
36
/**
37
+ * Generate valid random SerialNumbers for {@see \CycloneDX\Core\Models\Bom::setSerialNumber()}.
38
+ *
39
+ * @since 2.1.0
40
+ *
37
41
* @throws Exception if an appropriate source of randomness cannot be found
38
42
*/
39
43
public static function randomSerialNumber (): string
You can’t perform that action at this time.
0 commit comments