MappingDriver.php 928 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Doctrine\Persistence\Mapping\Driver;
  3. use Doctrine\Persistence\Mapping\ClassMetadata;
  4. /**
  5. * Contract for metadata drivers.
  6. */
  7. interface MappingDriver
  8. {
  9. /**
  10. * Loads the metadata for the specified class into the provided container.
  11. *
  12. * @param string $className
  13. *
  14. * @return void
  15. */
  16. public function loadMetadataForClass($className, ClassMetadata $metadata);
  17. /**
  18. * Gets the names of all mapped classes known to this driver.
  19. *
  20. * @return string[] The names of all mapped classes known to this driver.
  21. */
  22. public function getAllClassNames();
  23. /**
  24. * Returns whether the class with the specified name should have its metadata loaded.
  25. * This is only the case if it is either mapped as an Entity or a MappedSuperclass.
  26. *
  27. * @param string $className
  28. *
  29. * @return bool
  30. */
  31. public function isTransient($className);
  32. }