Version
in package
Table of Contents
- REGEX = '/^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/'
- $value : string
- create() : self
- Create instance.
- value() : string
- Return value.
- __construct() : mixed
- Constructor.
Constants
REGEX
private
mixed
REGEX
= '/^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/'
Properties
$value
private
string
$value
Methods
create()
Create instance.
public
static create(string $version) : self
Parameters
- $version : string
Return values
self —value()
Return value.
public
value() : string
Return values
string —__construct()
Constructor.
private
__construct(string $value) : mixed
Parameters
- $value : string