Drupal investigation

LoaderInterface.php 782B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Validator\Mapping\Loader;
  11. use Symfony\Component\Validator\Mapping\ClassMetadata;
  12. /**
  13. * Loads validation metadata into {@link ClassMetadata} instances.
  14. *
  15. * @author Bernhard Schussek <bschussek@gmail.com>
  16. */
  17. interface LoaderInterface
  18. {
  19. /**
  20. * Loads validation metadata into a {@link ClassMetadata} instance.
  21. *
  22. * @param ClassMetadata $metadata The metadata to load
  23. *
  24. * @return bool Whether the loader succeeded
  25. */
  26. public function loadClassMetadata(ClassMetadata $metadata);
  27. }