Driver.php 758 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Gedmo\Mapping;
  3. /**
  4. * The mapping driver abstract class, defines the
  5. * metadata extraction function common among
  6. * all drivers used on these extensions.
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  10. */
  11. interface Driver
  12. {
  13. /**
  14. * Read extended metadata configuration for
  15. * a single mapped class
  16. *
  17. * @param object $meta
  18. * @param array $config
  19. *
  20. * @return void
  21. */
  22. public function readExtendedMetadata($meta, array &$config);
  23. /**
  24. * Passes in the original driver
  25. *
  26. * @param object $driver
  27. *
  28. * @return void
  29. */
  30. public function setOriginalDriver($driver);
  31. }