Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public static function getInterfaceMethods($interface) |
||
29 | { |
||
30 | $interface = new \ReflectionClass($interface); |
||
31 | $result = []; |
||
32 | foreach ($interface->getMethods(\ReflectionMethod::IS_ABSTRACT) as $method) { |
||
33 | if (StringHelper::startsWith($method->class, 'carono\exchange1c\interfaces')) { |
||
34 | $result[] = $method; |
||
35 | } |
||
36 | } |
||
37 | return array_values(ArrayHelper::map($result, 'name', 'name')); |
||
38 | } |
||
55 | } |