| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function create(ImageInterface $image): ImageView |
||
| 33 | { |
||
| 34 | /** @var ImageView $imageView */ |
||
| 35 | $imageView = new $this->imageViewClass(); |
||
| 36 | $imageView->type = $image->getType(); |
||
| 37 | $imageView->path = $image->getPath(); |
||
| 38 | $imageView->cachedPath = $this->filterService->getUrlOfFilteredImage($image->getPath(), $this->filter); |
||
| 39 | |||
| 40 | return $imageView; |
||
| 41 | } |
||
| 43 |