PHP Класс Inpsyde\MultilingualPress\Common\Type\SemanticVersionNumber

См. также: http://semver.org/#semantic-versioning-specification-semver
С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Common\Type\VersionNumber
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( mixed $version ) Constructor. Sets up the properties.
__toString ( ) : string Returns the version string.

Приватные методы

Метод Описание
format_version ( string $version ) : string Formats the given number according to the Semantic Versioning specification.
get_semantic_version_number ( string $version ) : string Returns a sanitized semantic version number string for the given version.
sanitize_version ( string $version ) : string Removes invalid characters, and inserts dots between numeric and non-numeric characters.

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( mixed $version )
$version mixed Version source.

__toString() публичный метод

Returns the version string.
С версии: 3.0.0
public __toString ( ) : string
Результат string Version string.