SemVer
class SemVer implements TaskInterface (View source)
Helps to maintain .semver
file.
<?php
$this->taskSemVer('.semver')
->increment()
->run();
?>
Constants
SEMVER |
|
REGEX |
|
REGEX_STRING |
|
Properties
protected string | $format | ||
protected string | $specialSeparator | ||
protected string | $metadataSeparator | ||
protected string | $path | ||
protected array | $version |
Methods
__construct(string $filename = '')
No description
string
__toString()
No description
$this
version(string $version)
No description
$this
setFormat(string $format)
No description
$this
setMetadataSeparator(string $separator)
No description
$this
setPrereleaseSeparator(string $separator)
No description
$this
increment(string $what = 'patch')
No description
$this
prerelease(string $tag = 'RC')
No description
$this
metadata(array|string $data)
No description
bool
dump()
No description
parseString(string $semverString)
No description
parseFile(string $semverFileContents)
No description
Details
__construct(string $filename = '')
No description
string
__toString()
No description
$this
version(string $version)
No description
$this
setFormat(string $format)
No description
$this
setMetadataSeparator(string $separator)
No description
$this
setPrereleaseSeparator(string $separator)
No description
$this
increment(string $what = 'patch')
No description
$this
prerelease(string $tag = 'RC')
No description
$this
metadata(array|string $data)
No description
Result
run()
No description
protected bool
dump()
No description
protected
parseString(string $semverString)
No description
protected
parseFile(string $semverFileContents)
No description