| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | protected function findResolver(BusinessEntity $businessEntity) |
||
| 42 | { |
||
| 43 | if (array_key_exists($businessEntity->getType(), $this->resolvers)) { |
||
| 44 | return $this->resolvers[$businessEntity->getType()]; |
||
| 45 | } else { |
||
| 46 | throw new \Exception(sprintf('there is no resolver for %s type', $businessEntity->getType())); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 |