Vehicle.php 653 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Sluggable\Fixture\MappedSuperclass;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * @ORM\MappedSuperclass
  7. */
  8. class Vehicle
  9. {
  10. /**
  11. * @ORM\Column(length=128)
  12. */
  13. private $title;
  14. /**
  15. * @Gedmo\Slug(fields={"title"})
  16. * @ORM\Column(length=128, unique=true)
  17. */
  18. private $slug;
  19. public function getId()
  20. {
  21. return $this->id;
  22. }
  23. public function setTitle($title)
  24. {
  25. $this->title = $title;
  26. }
  27. public function getTitle()
  28. {
  29. return $this->title;
  30. }
  31. public function getSlug()
  32. {
  33. return $this->slug;
  34. }
  35. }