| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function getObjectFromFilename($filename) |
||
| 51 | { |
||
| 52 | /** @var ResponsiveImageRepositoryInterface $repository */ |
||
| 53 | $repository = $this->manager->getRepository($this->entityClassName); |
||
| 54 | |||
| 55 | if ($repository instanceof ResponsiveImageRepositoryInterface) { |
||
| 56 | $fileObject = $repository->findImageFromFilename($filename); |
||
| 57 | |||
| 58 | return $fileObject; |
||
| 59 | } |
||
| 60 | |||
| 61 | return null; |
||
| 62 | } |
||
| 63 | } |