SlugHandlerOption.php 854 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Gedmo\Mapping\Annotation;
  3. use Doctrine\Common\Annotations\Annotation;
  4. /**
  5. * SlugHandlerOption annotation for Sluggable behavioral extension
  6. *
  7. * @Gedmo\Slug(handlers={
  8. * @Gedmo\SlugHandler(class="Some\Class", options={
  9. * @Gedmo\SlugHandlerOption(name="relation", value="parent"),
  10. * @Gedmo\SlugHandlerOption(name="separator", value="/")
  11. * }),
  12. * @Gedmo\SlugHandler(class="Some\Class", options={
  13. * @Gedmo\SlugHandlerOption(name="option", value="val"),
  14. * ...
  15. * }),
  16. * ...
  17. * }, separator="-", updatable=false)
  18. *
  19. * @Annotation
  20. *
  21. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  22. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  23. */
  24. final class SlugHandlerOption extends Annotation
  25. {
  26. public $name;
  27. public $value;
  28. }