1 | <?php |
||
21 | class CreateHandler implements ExtensionInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var \LizardMedia\ProductAttachment\Api\AttachmentRepositoryInterface |
||
25 | */ |
||
26 | private $attachmentRepository; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * @param \LizardMedia\ProductAttachment\Api\AttachmentRepositoryInterface $attachmentRepository |
||
31 | */ |
||
32 | public function __construct(AttachmentRepositoryInterface $attachmentRepository) |
||
36 | |||
37 | |||
38 | /** |
||
39 | * @param object $entity |
||
40 | * @param array $arguments |
||
41 | * |
||
42 | * @return \Magento\Catalog\Api\Data\ProductInterface|object $entity |
||
43 | */ |
||
44 | public function execute($entity, $arguments = []) |
||
56 | } |
||
57 |