Conditions | 3 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public static function getImplementedMethods($class, $interface) |
||
46 | { |
||
47 | $methods = $class ? ClassHelper::getMethods($class) : []; |
||
48 | $interfaceMethods = self::getInterfaceMethods($interface); |
||
49 | $result = []; |
||
50 | foreach ($interfaceMethods as $interfaceMethod) { |
||
51 | $result[$interfaceMethod] = array_search($interfaceMethod, $methods) !== false; |
||
52 | } |
||
53 | return $result; |
||
54 | } |
||
55 | } |