Drupal investigation

MetadataInterface.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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;
  11. use Symfony\Component\Validator\Constraint;
  12. use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface;
  13. /**
  14. * A container for validation metadata.
  15. *
  16. * Most importantly, the metadata stores the constraints against which an object
  17. * and its properties should be validated.
  18. *
  19. * Additionally, the metadata stores whether objects should be validated
  20. * against their class' metadata and whether traversable objects should be
  21. * traversed or not.
  22. *
  23. * @author Bernhard Schussek <bschussek@gmail.com>
  24. *
  25. * @see CascadingStrategy
  26. * @see TraversalStrategy
  27. */
  28. interface MetadataInterface extends LegacyMetadataInterface
  29. {
  30. /**
  31. * Returns the strategy for cascading objects.
  32. *
  33. * @return int The cascading strategy
  34. *
  35. * @see CascadingStrategy
  36. */
  37. public function getCascadingStrategy();
  38. /**
  39. * Returns the strategy for traversing traversable objects.
  40. *
  41. * @return int The traversal strategy
  42. *
  43. * @see TraversalStrategy
  44. */
  45. public function getTraversalStrategy();
  46. /**
  47. * Returns all constraints of this element.
  48. *
  49. * @return Constraint[] A list of Constraint instances
  50. */
  51. public function getConstraints();
  52. }