Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Faker\Extension;
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @experimental This interface is experimental and does not fall under our BC promise
|
|
|
7 |
*/
|
|
|
8 |
interface VersionExtension extends Extension
|
|
|
9 |
{
|
|
|
10 |
/**
|
|
|
11 |
* Get a version number in semantic versioning syntax 2.0.0. (https://semver.org/spec/v2.0.0.html)
|
|
|
12 |
*
|
|
|
13 |
* @param bool $preRelease Pre release parts may be randomly included
|
|
|
14 |
* @param bool $build Build parts may be randomly included
|
|
|
15 |
*
|
|
|
16 |
* @example 1.0.0
|
|
|
17 |
* @example 1.0.0-alpha.1
|
|
|
18 |
* @example 1.0.0-alpha.1+b71f04d
|
|
|
19 |
*/
|
|
|
20 |
public function semver(bool $preRelease = false, bool $build = false): string;
|
|
|
21 |
}
|