Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
43 | private function hasBoundMethod(string $class, BindInterface $bind) : bool |
||
44 | { |
||
45 | $bindingMethods = array_keys($bind->getBindings()); |
||
46 | $hasMethod = false; |
||
47 | foreach ($bindingMethods as $bindingMethod) { |
||
48 | if (method_exists($class, $bindingMethod)) { |
||
49 | $hasMethod = true; |
||
50 | } |
||
51 | } |
||
52 | |||
53 | return $hasMethod; |
||
54 | } |
||
55 | |||
70 |