ContentUploaderInterface.php 533 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Downloadable\Api\Data\File;
  7. /**
  8. * @codeCoverageIgnore
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface ContentUploaderInterface
  13. {
  14. /**
  15. * Upload provided downloadable file content
  16. *
  17. * @param ContentInterface $fileContent
  18. * @param string $contentType
  19. * @return array
  20. * @throws \InvalidArgumentException
  21. */
  22. public function upload(ContentInterface $fileContent, $contentType);
  23. }