AnnotationDriverInterface.php 852 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Gedmo\Mapping\Driver;
  3. use Gedmo\Mapping\Driver;
  4. /**
  5. * Annotation driver interface, provides method
  6. * to set custom annotation reader.
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  10. */
  11. interface AnnotationDriverInterface extends Driver
  12. {
  13. /**
  14. * Set annotation reader class
  15. * since older doctrine versions do not provide an interface
  16. * it must provide these methods:
  17. * getClassAnnotations([reflectionClass])
  18. * getClassAnnotation([reflectionClass], [name])
  19. * getPropertyAnnotations([reflectionProperty])
  20. * getPropertyAnnotation([reflectionProperty], [name])
  21. *
  22. * @param object $reader - annotation reader class
  23. */
  24. public function setAnnotationReader($reader);
  25. }