ImageContentValidatorInterface.php 601 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Framework\Api;
  8. use Magento\Framework\Api\Data\ImageContentInterface;
  9. use Magento\Framework\Exception\InputException;
  10. /**
  11. * Image content validation interface
  12. *
  13. * @api
  14. * @since 100.0.2
  15. */
  16. interface ImageContentValidatorInterface
  17. {
  18. /**
  19. * Check if gallery entry content is valid
  20. *
  21. * @param ImageContentInterface $imageContent
  22. * @return bool
  23. * @throws InputException
  24. */
  25. public function isValid(ImageContentInterface $imageContent);
  26. }