LockValidatorInterface.php 654 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Attribute lock state validator interface
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Catalog\Model\Attribute;
  9. /**
  10. * Interface \Magento\Catalog\Model\Attribute\LockValidatorInterface
  11. *
  12. */
  13. interface LockValidatorInterface
  14. {
  15. /**
  16. * Check attribute lock state
  17. *
  18. * @param \Magento\Framework\Model\AbstractModel $object
  19. * @param null $attributeSet
  20. * @throws \Magento\Framework\Exception\LocalizedException
  21. *
  22. * @return void
  23. */
  24. public function validate(\Magento\Framework\Model\AbstractModel $object, $attributeSet = null);
  25. }