Car.php 553 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Sluggable\Fixture\MappedSuperclass;
  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\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(length=128)
  18. */
  19. private $description;
  20. public function setDescription($description)
  21. {
  22. $this->description = $description;
  23. }
  24. public function getDescription()
  25. {
  26. return $this->description;
  27. }
  28. }