Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | abstract class Logic implements Condition |
||
28 | { |
||
29 | /** |
||
30 | * List of conditions to logically connect |
||
31 | * |
||
32 | * @var \CaptainHook\App\Hook\Condition[] |
||
33 | */ |
||
34 | protected array $conditions = []; |
||
35 | |||
36 | 2 | final private function __construct(Condition ...$conditions) |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * Create a logic condition |
||
43 | * |
||
44 | * @param array<Condition> $conditions |
||
45 | * @return \CaptainHook\App\Hook\Condition |
||
46 | */ |
||
47 | 7 | public static function fromConditionsArray(array $conditions): Condition |
|
60 |