Slug.php 918 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Gedmo\Mapping\Annotation;
  3. use Doctrine\Common\Annotations\Annotation;
  4. /**
  5. * Slug annotation for Sluggable behavioral extension
  6. *
  7. * @Annotation
  8. * @Target("PROPERTY")
  9. *
  10. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  11. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  12. */
  13. final class Slug extends Annotation
  14. {
  15. /** @var array<string> @required */
  16. public $fields = array();
  17. /** @var boolean */
  18. public $updatable = true;
  19. /** @var string */
  20. public $style = 'default'; // or "camel"
  21. /** @var boolean */
  22. public $unique = true;
  23. /** @var string */
  24. public $unique_base = null;
  25. /** @var string */
  26. public $separator = '-';
  27. /** @var string */
  28. public $prefix = '';
  29. /** @var string */
  30. public $suffix = '';
  31. /** @var array<Gedmo\Mapping\Annotation\SlugHandler> */
  32. public $handlers = array();
  33. }