src/JuridicusBundle/Entity/Kenntnis.php line 14

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. * Kenntnis
  8. * @ORM\Entity
  9. * @UniqueEntity("name")
  10. */
  11. class Kenntnis
  12. {
  13. const CLASSNAME = __CLASS__;
  14. /**
  15. * @var integer
  16. */
  17. private $id;
  18. /**
  19. * @var string
  20. * @Assert\NotBlank
  21. * @Assert\Length(max="64")
  22. */
  23. private $name;
  24. /**
  25. * @var integer
  26. */
  27. private $sortierung;
  28. /**
  29. * @var \Doctrine\Common\Collections\Collection
  30. */
  31. private $kunde_kenntnisse;
  32. /**
  33. * Constructor
  34. */
  35. public function __construct()
  36. {
  37. $this->kunde_kenntnisse = new \Doctrine\Common\Collections\ArrayCollection();
  38. }
  39. /**
  40. * Get id
  41. *
  42. * @return integer
  43. */
  44. public function getId()
  45. {
  46. return $this->id;
  47. }
  48. /**
  49. * Set name
  50. *
  51. * @param string $name
  52. * @return Kenntnis
  53. */
  54. public function setName($name)
  55. {
  56. $this->name = $name;
  57. return $this;
  58. }
  59. /**
  60. * Get name
  61. *
  62. * @return string
  63. */
  64. public function getName()
  65. {
  66. return $this->name;
  67. }
  68. /**
  69. * Set sortierung
  70. *
  71. * @param integer $sortierung
  72. * @return Kenntnis
  73. */
  74. public function setSortierung($sortierung)
  75. {
  76. $this->sortierung = $sortierung;
  77. return $this;
  78. }
  79. /**
  80. * Get sortierung
  81. *
  82. * @return integer
  83. */
  84. public function getSortierung()
  85. {
  86. return $this->sortierung;
  87. }
  88. /**
  89. * Add kunde_kenntnisse [INVERSE SIDE]
  90. *
  91. * @param \JF\JuridicusBundle\Entity\KundeKenntnis $kundeKenntnisse
  92. * @return Kenntnis
  93. */
  94. public function addKundeKenntnisse(\JF\JuridicusBundle\Entity\KundeKenntnis $kundeKenntnisse)
  95. {
  96. $this->kunde_kenntnisse[] = $kundeKenntnisse;
  97. return $this;
  98. }
  99. /**
  100. * Remove kunde_kenntnisse [INVERSE SIDE]
  101. *
  102. * @param \JF\JuridicusBundle\Entity\KundeKenntnis $kundeKenntnisse
  103. */
  104. public function removeKundeKenntnisse(\JF\JuridicusBundle\Entity\KundeKenntnis $kundeKenntnisse)
  105. {
  106. $this->kunde_kenntnisse->removeElement($kundeKenntnisse);
  107. }
  108. /**
  109. * Get kunde_kenntnisse
  110. *
  111. * @return \Doctrine\Common\Collections\Collection
  112. */
  113. public function getKundeKenntnisse()
  114. {
  115. return $this->kunde_kenntnisse;
  116. }
  117. /**
  118. * String Representation
  119. * @return string
  120. */
  121. public function __toString()
  122. {
  123. return $this->name;
  124. }
  125. }