AnnotationDriverInterface.php 961B

12345678910111213141516171819202122232425262728293031
  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. * @package Gedmo.Mapping.Driver
  10. * @subpackage AnnotationDriverInterface
  11. * @link http://www.gediminasm.org
  12. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  13. */
  14. interface AnnotationDriverInterface extends Driver
  15. {
  16. /**
  17. * Set annotation reader class
  18. * since older doctrine versions do not provide an interface
  19. * it must provide these methods:
  20. * getClassAnnotations([reflectionClass])
  21. * getClassAnnotation([reflectionClass], [name])
  22. * getPropertyAnnotations([reflectionProperty])
  23. * getPropertyAnnotation([reflectionProperty], [name])
  24. *
  25. * @param object $reader - annotation reader class
  26. */
  27. public function setAnnotationReader($reader);
  28. }