1 | <?php |
||
23 | class DownloadResourceResolver |
||
24 | { |
||
25 | /** |
||
26 | * @var FileHelper |
||
27 | */ |
||
28 | private $fileHelper; |
||
29 | |||
30 | /** |
||
31 | * @var DirectoryList |
||
32 | */ |
||
33 | private $directoryList; |
||
34 | |||
35 | /** |
||
36 | * DownloadResourceResolver constructor. |
||
37 | * @param FileHelper $fileHelper |
||
38 | * @param DirectoryList $directoryList |
||
39 | */ |
||
40 | public function __construct(FileHelper $fileHelper, DirectoryList $directoryList) |
||
45 | |||
46 | /** |
||
47 | * @param AttachmentInterface $attachment |
||
48 | * @return string |
||
49 | * @codeCoverageIgnore |
||
50 | */ |
||
51 | public function resolveResourceType(AttachmentInterface $attachment): string |
||
55 | |||
56 | /** |
||
57 | * @param AttachmentInterface $attachment |
||
58 | * @return string |
||
59 | */ |
||
60 | public function resolveResource(AttachmentInterface $attachment): string |
||
66 | |||
67 | /** |
||
68 | * @param AttachmentInterface $attachment |
||
69 | * @return string |
||
70 | */ |
||
71 | private function buildFullFilePath(AttachmentInterface $attachment): string |
||
81 | } |