ConfigurationArticle.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace Sluggable\Fixture;
  3. use Gedmo\Sluggable\Sluggable;
  4. /**
  5. * @Entity
  6. */
  7. class ConfigurationArticle implements Sluggable
  8. {
  9. /** @Id @GeneratedValue @Column(type="integer") */
  10. private $id;
  11. /**
  12. * @gedmo:Sluggable
  13. * @Column(name="title", type="string", length=64)
  14. */
  15. private $title;
  16. /**
  17. * @gedmo:Sluggable
  18. * @Column(name="code", type="string", length=16)
  19. */
  20. private $code;
  21. /**
  22. * @gedmo:Slug(updatable=false, unique=false)
  23. * @Column(name="slug", type="string", length=32)
  24. */
  25. private $slug;
  26. public function getId()
  27. {
  28. return $this->id;
  29. }
  30. public function setTitle($title)
  31. {
  32. $this->title = $title;
  33. }
  34. public function getTitle()
  35. {
  36. return $this->title;
  37. }
  38. public function setCode($code)
  39. {
  40. $this->code = $code;
  41. }
  42. public function getCode()
  43. {
  44. return $this->code;
  45. }
  46. public function getSlug()
  47. {
  48. return $this->slug;
  49. }
  50. }