Drupal investigation

PropertyMetadataContainerInterface.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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;
  11. /**
  12. * A container for {@link PropertyMetadataInterface} instances.
  13. *
  14. * @author Bernhard Schussek <bschussek@gmail.com>
  15. *
  16. * @deprecated since version 2.5, to be removed in 3.0.
  17. * Use {@link Mapping\ClassMetadataInterface} instead.
  18. */
  19. interface PropertyMetadataContainerInterface
  20. {
  21. /**
  22. * Check if there's any metadata attached to the given named property.
  23. *
  24. * @param string $property The property name
  25. *
  26. * @return bool
  27. */
  28. public function hasPropertyMetadata($property);
  29. /**
  30. * Returns all metadata instances for the given named property.
  31. *
  32. * If your implementation does not support properties, simply throw an
  33. * exception in this method (for example a <tt>BadMethodCallException</tt>).
  34. *
  35. * @param string $property The property name
  36. *
  37. * @return PropertyMetadataInterface[] A list of metadata instances. Empty if
  38. * no metadata exists for the property.
  39. */
  40. public function getPropertyMetadata($property);
  41. }