Driver.php 736 B

1234567891011121314151617181920212223242526272829303132
  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. * @return void
  20. */
  21. public function readExtendedMetadata($meta, array &$config);
  22. /**
  23. * Passes in the original driver
  24. *
  25. * @param $driver
  26. * @return void
  27. */
  28. public function setOriginalDriver($driver);
  29. }