PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0.1
GiveWP – Donation Plugin and Fundraising Platform v4.18.0.1
4.18.0.1 4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 All 258 releases
give / vendor / vendor-prefixed / stellarwp / field-conditions / src / Contracts / Condition.php

Condition.php in GiveWP – Donation Plugin and Fundraising Platform 4.18.0.1, at vendor/vendor-prefixed/stellarwp/field-conditions/src/Contracts/Condition.php

36 lines 714 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Give\Vendors\StellarWP\FieldConditions\Contracts;
6
7 use JsonSerializable;
8
9 interface Condition extends JsonSerializable
10 {
11 const LOGICAL_OPERATORS = ['and', 'or'];
12
13 /**
14 * Returns the logical operator for this condition.
15 *
16 * @since 1.0.0
17 *
18 * @return 'and'|'or'
19 */
20 public function getLogicalOperator(): string;
21
22 /**
23 * Returns true if the condition passes.
24 *
25 * @param array<string, mixed> $values
26 */
27 public function passes(array $values): bool;
28
29 /**
30 * Returns true if the condition fails.
31 *
32 * @param array<string, mixed> $values
33 */
34 public function fails(array $values): bool;
35 }
36