1 | <?php |
||
28 | class AttachmentTab extends Template implements IdentityInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var AttachmentRepositoryInterface |
||
32 | */ |
||
33 | private $attachmentRepository; |
||
34 | |||
35 | /** |
||
36 | * @var SettingsInterface |
||
37 | */ |
||
38 | private $settings; |
||
39 | |||
40 | /** |
||
41 | * @var Registry |
||
42 | */ |
||
43 | private $registry; |
||
44 | |||
45 | /** |
||
46 | * @param AttachmentRepositoryInterface $attachmentRepository |
||
47 | * @param SettingsInterface $settings |
||
48 | * @param Context $context |
||
49 | * @param Registry $registry |
||
50 | * @param array $data |
||
51 | */ |
||
52 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * @return AttachmentInterface[] |
||
67 | */ |
||
68 | public function getAttachments() : array |
||
76 | |||
77 | /** |
||
78 | * @return ProductInterface |
||
79 | */ |
||
80 | public function getProduct(): ProductInterface |
||
84 | |||
85 | /** |
||
86 | * @param AttachmentInterface $attachment |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getDownloadUrl(AttachmentInterface $attachment): string |
||
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function getIsOpenInNewWindow(): bool |
||
104 | |||
105 | /** |
||
106 | * @return array |
||
107 | */ |
||
108 | public function getIdentities(): array |
||
112 | } |
||
113 |