| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class InterfaceHelper |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Get every class that implements $interfaceName |
||
| 9 | */ |
||
| 10 | 5 | public static function getImplementations(string $interfaceName): array |
|
| 14 | 5 | }); |
|
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns true|false if the $implementerClassName implements interface $interfaceName |
||
| 19 | */ |
||
| 20 | 35 | public static function implementsInterface(string $implementerClassName, string $interfaceName): bool |
|
| 25 |