ConstraintRequirement
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
Methods
- __construct() : mixed
- asString() : string
- from() : self
- isSatisfiedBy() : bool
- sanitize() : string
Constants
VERSION_COMPARISON
private
mixed
VERSION_COMPARISON
= '/(?P<operator>[<>=!]{0,2})\s*(?P<version>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m'
Properties
$constraint read-only
private
VersionConstraint
$constraint
Methods
__construct()
public
__construct(VersionConstraint $constraint) : mixed
Parameters
- $constraint : VersionConstraint
asString()
public
asString() : string
Tags
Return values
stringfrom()
public
static from(string $versionRequirement) : self
Parameters
- $versionRequirement : string
Tags
Return values
selfisSatisfiedBy()
public
isSatisfiedBy(string $version) : bool
Parameters
- $version : string
Tags
Return values
boolsanitize()
private
sanitize(string $version) : string
Parameters
- $version : string