Skip to content

Commit b23c992

Browse files
authored
docs: Announce and annotate the generator for BOM's SerialNumber (#282)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 25b7a62 commit b23c992

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

HISTORY.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
## unreleased
66

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+
712
## 2.1.0 - 2023-03-24
813

914
* Fixed
@@ -13,7 +18,8 @@ All notable changes to this project will be documented in this file.
1318
* `\CycloneDX\Core\Models\Bom::setSerialNumber()` no longer throws `\DomainException` when the value is of an unsupported format ([#277] via [#278])
1419
This is considered a non-breaking behaviour change, because the corresponding normalizers assure valid data results.
1520
* 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).
1723

1824
[#277]: https://github.com/CycloneDX/cyclonedx-php-library/issues/277
1925
[#278]: https://github.com/CycloneDX/cyclonedx-php-library/pull/278

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Work with Bill of Materials (BOM) in [CycloneDX] format.
4848
* `Metadata`
4949
* `Property`, `PropertyRepository`
5050
* `Tool`, `ToolRepository`
51+
* Utilities for the following use cases:
52+
* Generate valid random SerialNumbers for `Bom.serialNumber`
5153
* Factories for the following use cases:
5254
* Create data models from any license descriptor string
5355
* Implementation of the [_CycloneDX_ Specification][CycloneDX-spec] for the following versions:

src/Core/Utils/BomUtility.php

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
abstract class BomUtility
3535
{
3636
/**
37+
* Generate valid random SerialNumbers for {@see \CycloneDX\Core\Models\Bom::setSerialNumber()}.
38+
*
39+
* @since 2.1.0
40+
*
3741
* @throws Exception if an appropriate source of randomness cannot be found
3842
*/
3943
public static function randomSerialNumber(): string

0 commit comments

Comments
 (0)