Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | /** |
6 | * Copyright (c) 2019-2023 NxtLvl Software Solutions. |
7 | * |
8 | * Freely available to use under the terms of the MIT license. |
9 | */ |
10 | |
11 | namespace NxtLvlSoftware\StaticConstructors\Policy\Method; |
12 | |
13 | use ReflectionMethod; |
14 | |
15 | /** |
16 | * Interface defining requirements for static constructor method policies. |
17 | * |
18 | * Can be used to interact with the package and extend functionality. |
19 | */ |
20 | interface StaticConstructorMethodPolicy { |
21 | |
22 | /** |
23 | * Check if a static constructor candidate meets the requirements set by |
24 | * this policy using reflection information. |
25 | * |
26 | * @param \ReflectionMethod $method |
27 | * |
28 | * @return bool |
29 | */ |
30 | public static function meetsRequirements(ReflectionMethod $method): bool; |
31 | |
32 | } |