Article.php 758 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace Test\Fixture\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. */
  7. class Article
  8. {
  9. /**
  10. * @ORM\Id
  11. * @ORM\GeneratedValue
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\Column(length=64)
  17. */
  18. private $title;
  19. /**
  20. * @ORM\Column(type="boolean")
  21. */
  22. private $enabled = true;
  23. public function getId()
  24. {
  25. return $this->id;
  26. }
  27. public function setTitle($title)
  28. {
  29. $this->title = $title;
  30. }
  31. public function getTitle()
  32. {
  33. return $this->title;
  34. }
  35. public function setEnabled($enabled)
  36. {
  37. $this->enabled = $enabled;
  38. }
  39. public function isEnabled()
  40. {
  41. return $this->enabled;
  42. }
  43. }