PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.8.2
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.8.2
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / vendor / composer / semver / src / Constraint / ConstraintInterface.php
matomo / app / vendor / composer / semver / src / Constraint Last commit date
Bound.php 1 year ago Constraint.php 1 year ago ConstraintInterface.php 1 year ago MatchAllConstraint.php 1 year ago MatchNoneConstraint.php 1 year ago MultiConstraint.php 1 year ago
ConstraintInterface.php
76 lines
1 <?php
2
3 /*
4 * This file is part of composer/semver.
5 *
6 * (c) Composer <https://github.com/composer>
7 *
8 * For the full copyright and license information, please view
9 * the LICENSE file that was distributed with this source code.
10 */
11
12 namespace Composer\Semver\Constraint;
13
14 /**
15 * DO NOT IMPLEMENT this interface. It is only meant for usage as a type hint
16 * in libraries relying on composer/semver but creating your own constraint class
17 * that implements this interface is not a supported use case and will cause the
18 * composer/semver components to return unexpected results.
19 */
20 interface ConstraintInterface
21 {
22 /**
23 * Checks whether the given constraint intersects in any way with this constraint
24 *
25 * @param ConstraintInterface $provider
26 *
27 * @return bool
28 */
29 public function matches(ConstraintInterface $provider);
30
31 /**
32 * Provides a compiled version of the constraint for the given operator
33 * The compiled version must be a PHP expression.
34 * Executor of compile version must provide 2 variables:
35 * - $v = the string version to compare with
36 * - $b = whether or not the version is a non-comparable branch (starts with "dev-")
37 *
38 * @see Constraint::OP_* for the list of available operators.
39 * @example return '!$b && version_compare($v, '1.0', '>')';
40 *
41 * @param int $otherOperator one Constraint::OP_*
42 *
43 * @return string
44 *
45 * @phpstan-param Constraint::OP_* $otherOperator
46 */
47 public function compile($otherOperator);
48
49 /**
50 * @return Bound
51 */
52 public function getUpperBound();
53
54 /**
55 * @return Bound
56 */
57 public function getLowerBound();
58
59 /**
60 * @return string
61 */
62 public function getPrettyString();
63
64 /**
65 * @param string|null $prettyString
66 *
67 * @return void
68 */
69 public function setPrettyString($prettyString);
70
71 /**
72 * @return string
73 */
74 public function __toString();
75 }
76