Car.php 866 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace Sluggable\Fixture\Inheritance2;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class Car extends Vehicle
  9. {
  10. /**
  11. * @ORM\Column(length=128, nullable=true)
  12. */
  13. private $description;
  14. /**
  15. * @ORM\Column(length=128)
  16. */
  17. protected $title;
  18. /**
  19. * @Gedmo\Slug(fields={"title"})
  20. * @ORM\Column(length=128, unique=true)
  21. */
  22. private $slug;
  23. public function setDescription($description)
  24. {
  25. $this->description = $description;
  26. }
  27. public function getDescription()
  28. {
  29. return $this->description;
  30. }
  31. public function setTitle($title)
  32. {
  33. $this->title = $title;
  34. }
  35. public function getTitle()
  36. {
  37. return $this->title;
  38. }
  39. public function getSlug()
  40. {
  41. return $this->slug;
  42. }
  43. }