ValidatorInterface.php 584 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\DeploymentConfig;
  7. /**
  8. * Validator interface for section data from shared configuration files.
  9. */
  10. interface ValidatorInterface
  11. {
  12. /**
  13. * Validates data and returns messages with causes of wrong data.
  14. * Returns empty array if data is valid
  15. *
  16. * @param array $data Data that should be validated
  17. * @return string[] The array of messages with description of wrong data.
  18. */
  19. public function validate(array $data);
  20. }