Translatable.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Gedmo\Translatable;
  3. /**
  4. * This interface is not necessary but can be implemented for
  5. * Entities which in some cases needs to be identified as
  6. * Translatable
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @package Gedmo.Translatable
  10. * @subpackage Translatable
  11. * @link http://www.gediminasm.org
  12. * @version 2.0.0
  13. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  14. */
  15. interface Translatable
  16. {
  17. // use now annotations instead of predifined methods, this interface is not necessary
  18. /**
  19. * @gedmo:TranslationEntity
  20. * to specify custom translation class use
  21. * class annotation @gedmo:TranslationEntity(class="your\class")
  22. */
  23. /**
  24. * @gedmo:Translatable
  25. * to mark the field as translatable,
  26. * these fields will be translated
  27. */
  28. /**
  29. * @gedmo:Locale OR @gedmo:Language
  30. * to mark the field as locale used to override global
  31. * locale settings from TranslationListener
  32. */
  33. }