MatchNoneConstraint
in package
implements
ConstraintInterface
Blackhole of constraints, nothing escapes it
Interfaces, Classes and Traits
- ConstraintInterface
- DO NOT IMPLEMENT this interface. It is only meant for usage as a type hint in libraries relying on composer/semver but creating your own constraint class that implements this interface is not a supported use case and will cause the composer/semver components to return unexpected results.
Table of Contents
- $prettyString : string|null
- __toString() : string
- compile() : string
- Provides a compiled version of the constraint for the given operator The compiled version must be a PHP expression.
- getLowerBound() : Bound
- getPrettyString() : string
- getUpperBound() : Bound
- matches() : bool
- Checks whether the given constraint intersects in any way with this constraint
- setPrettyString() : void
Properties
$prettyString
protected
string|null
$prettyString
Methods
__toString()
public
__toString() : string
Return values
string —compile()
Provides a compiled version of the constraint for the given operator The compiled version must be a PHP expression.
public
compile(mixed $otherOperator) : string
Parameters
- $otherOperator : mixed
-
one Constraint::OP_*
Return values
string —getLowerBound()
public
getLowerBound() : Bound
Return values
Bound —getPrettyString()
public
getPrettyString() : string
Return values
string —getUpperBound()
public
getUpperBound() : Bound
Return values
Bound —matches()
Checks whether the given constraint intersects in any way with this constraint
public
matches(ConstraintInterface $provider) : bool
Parameters
- $provider : ConstraintInterface
Return values
bool —setPrettyString()
public
setPrettyString(mixed $prettyString) : void
Parameters
- $prettyString : mixed