| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function matches($point, $context = null, $instance = null, array $arguments = null) |
||
| 34 | { |
||
| 35 | if (!$context instanceof \ReflectionClass) { |
||
| 36 | return false; |
||
| 37 | }; |
||
| 38 | |||
| 39 | if (!($point instanceof \ReflectionMethod) && !($point instanceof \ReflectionProperty)) { |
||
| 40 | return false; |
||
| 41 | } |
||
| 42 | |||
| 43 | $declaringClassName = $point->getDeclaringClass()->name; |
||
| 44 | |||
| 45 | return $context->isSubclassOf($declaringClassName); |
||
| 46 | } |
||
| 47 | |||
| 58 |