VersionExtension
extends
Extension
in
An extension is the only way to add new functionality to Faker.
Tags
Table of Contents
- semver() : string
- Get a version number in semantic versioning syntax 2.0.0. (https://semver.org/spec/v2.0.0.html)
Methods
semver()
Get a version number in semantic versioning syntax 2.0.0. (https://semver.org/spec/v2.0.0.html)
public
semver([bool $preRelease = false ][, bool $build = false ]) : string
Parameters
- $preRelease : bool = false
-
Pre release parts may be randomly included
- $build : bool = false
-
Build parts may be randomly included