AuditManagerInterface.php 755 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Model;
  11. interface AuditManagerInterface
  12. {
  13. /**
  14. * @param string $serviceId
  15. * @param array $classes
  16. */
  17. public function setReader($serviceId, array $classes);
  18. /**
  19. * @param string $class
  20. *
  21. * @return bool
  22. */
  23. public function hasReader($class);
  24. /**
  25. * @param string $class
  26. *
  27. * @return \Sonata\AdminBundle\Model\AuditReaderInterface
  28. * @throws \RuntimeException
  29. */
  30. public function getReader($class);
  31. }