| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class GetImageHandler extends MediaHandler |
||
| 15 | { |
||
| 16 | private $manipulator; |
||
| 17 | |||
| 18 | public function __construct(MediaRepository $repository, Manipulator $manipulator) |
||
| 19 | { |
||
| 20 | parent::__construct($repository); |
||
| 21 | |||
| 22 | $this->manipulator = $manipulator; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @throws MediaNotFound |
||
| 27 | * @throws ImageProcessingFailure |
||
| 28 | */ |
||
| 29 | public function __invoke(GetImage $query): Response |
||
| 41 | } |
||
| 42 | } |
||
| 44 |