| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait ResolvesTypeTrait |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param mixed $entity |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | protected function resolveType($entity) |
||
| 16 | { |
||
| 17 | return $this->getTypeResolver()->resolveType($entity); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return TypeResolverInterface |
||
| 22 | */ |
||
| 23 | protected function getTypeResolver() |
||
| 26 | } |
||
| 27 | } |
||
| 28 |