| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function findCaller() |
||
| 46 | { |
||
| 47 | $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, $this->deep); |
||
| 48 | foreach ($bt as $call) { |
||
| 49 | if (!isset($call['class']) || strpos($call['class'], __NAMESPACE__) === false) { |
||
| 50 | return $call; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | throw new CallerResolverException("Error finding the caller"); |
||
| 55 | } |
||
| 56 | } |