ComparisonRequirement
extends Requirement
in package
FinalYes
Tags
Table of Contents
Constants
- VERSION_COMPARISON = '/(?P<operator>[<>=!]{0,2})\s*(?P<version>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m'
Properties
- $operator : VersionComparisonOperator
- $version : string
Methods
- __construct() : mixed
- asString() : string
- from() : self
- isSatisfiedBy() : bool
Constants
VERSION_COMPARISON
private
mixed
VERSION_COMPARISON
= '/(?P<operator>[<>=!]{0,2})\s*(?P<version>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m'
Properties
$operator read-only
private
VersionComparisonOperator
$operator
$version read-only
private
string
$version
Methods
__construct()
public
__construct(string $version, VersionComparisonOperator $operator) : mixed
Parameters
- $version : string
- $operator : VersionComparisonOperator
asString()
public
asString() : string
Return values
stringfrom()
public
static from(string $versionRequirement) : self
Parameters
- $versionRequirement : string
Tags
Return values
selfisSatisfiedBy()
public
isSatisfiedBy(string $version) : bool
Parameters
- $version : string