Initial commit
This commit is contained in:
21
vendor/fakerphp/faker/src/Faker/Extension/VersionExtension.php
vendored
Normal file
21
vendor/fakerphp/faker/src/Faker/Extension/VersionExtension.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Extension;
|
||||
|
||||
/**
|
||||
* @experimental This interface is experimental and does not fall under our BC promise
|
||||
*/
|
||||
interface VersionExtension extends Extension
|
||||
{
|
||||
/**
|
||||
* Get a version number in semantic versioning syntax 2.0.0. (https://semver.org/spec/v2.0.0.html)
|
||||
*
|
||||
* @param bool $preRelease Pre release parts may be randomly included
|
||||
* @param bool $build Build parts may be randomly included
|
||||
*
|
||||
* @example 1.0.0
|
||||
* @example 1.0.0-alpha.1
|
||||
* @example 1.0.0-alpha.1+b71f04d
|
||||
*/
|
||||
public function semver(bool $preRelease = false, bool $build = false): string;
|
||||
}
|
||||
Reference in New Issue
Block a user