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.
AbstractInterface
- Implements
Stringable
Methods |
public abstract __toString() : string
|
public abstract compile( $otherOperator) Provides a compiled version of the constraint for the given operator The compiled version must be a PHP expression. Executor of compile version must provide 2 variables:
|
public abstract getLowerBound()
|
public abstract getPrettyString()
|
public abstract getUpperBound()
|
public abstract matches(Composer Checks whether the given constraint intersects in any way with this constraint
|
public abstract setPrettyString( $prettyString)
|