Loggable.php 883B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Gedmo\Loggable;
  3. /**
  4. * This interface is not necessary but can be implemented for
  5. * Domain Objects which in some cases needs to be identified as
  6. * Loggable
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @package Gedmo.Loggable
  10. * @subpackage Loggable
  11. * @link http://www.gediminasm.org
  12. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  13. */
  14. interface Loggable
  15. {
  16. // this interface is not necessary to implement
  17. /**
  18. * @gedmo:Loggable
  19. * to mark the class as loggable use class annotation @gedmo:Loggable
  20. * this object will contain now a history
  21. * available options:
  22. * logEntryClass="My\LogEntryObject" (optional) defaultly will use internal object class
  23. * example:
  24. *
  25. * @gedmo:Loggable(logEntryClass="My\LogEntryObject")
  26. * class MyEntity
  27. */
  28. }