src/JuridicusBundle/Entity/ProtokollGesetzBase.php line 12

Open in your IDE?
  1. <?php
  2. namespace JF\JuridicusBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7. * ProtokollGesetzBase
  8. */
  9. class ProtokollGesetzBase
  10. {
  11. const CLASSNAME = __CLASS__;
  12. /**
  13. * @var integer
  14. */
  15. protected $id;
  16. /**
  17. * @var integer
  18. */
  19. protected $sortierung = 0;
  20. /**
  21. * @var string
  22. * @Assert\Length(max=8)
  23. * @Assert\Regex(pattern="/^\d+[a-z]?$/", message = "Das Format ist ungültig.")
  24. */
  25. protected $paragraph;
  26. /**
  27. * Get id
  28. *
  29. * @return integer
  30. */
  31. public function getId()
  32. {
  33. return $this->id;
  34. }
  35. /**
  36. * Set sortierung
  37. *
  38. * @param integer $sortierung
  39. * @return ProtokollGesetzBase
  40. */
  41. public function setSortierung($sortierung)
  42. {
  43. $this->sortierung = $sortierung;
  44. return $this;
  45. }
  46. /**
  47. * Get sortierung
  48. *
  49. * @return integer
  50. */
  51. public function getSortierung()
  52. {
  53. return $this->sortierung;
  54. }
  55. /**
  56. * Set paragraph
  57. *
  58. * @param string $paragraph
  59. * @return ProtokollGesetzBase
  60. */
  61. public function setParagraph($paragraph)
  62. {
  63. $this->paragraph = $paragraph;
  64. return $this;
  65. }
  66. /**
  67. * Get paragraph
  68. *
  69. * @return string
  70. */
  71. public function getParagraph()
  72. {
  73. return $this->paragraph;
  74. }
  75. }